所以我有一個合併單元格,看起來像下面如何格式化邊框合併單元格的VBA
以下是我的代碼將邊框周圍:
Dim c As Range
For Each c In testing
If c.MergeCells Then
c.Interior.ColorIndex = 19
c.Borders.LineStyle = xlContinuous
c.Borders.Weight = xlThick
c.Borders.Color = vbGreen
End If
Next
這代碼僅在左上角單元格周圍創建邊框(請參見圖片)。我如何確保邊界放置在整個合併單元格周圍?
爲什麼Excel的公式標籤?當它看起來像你想從你的標題VBA解決方案? –