2016-05-25 40 views
0

我是新來的VBA,我有一個excel具有完全的白色背景, 我如何更改與默認的網格線(不是邊框)正常的Excel格式文件背景Excel和VBA

感謝

+0

這不是一個VBA問題。我想你在「視圖」標籤中查找「網格線」選項? – Verzweifler

+0

在'Home'菜單 - >'Font'組中,選擇'No Border'。 – Mrig

+0

非常感謝你 –

回答

0

我假設你的意思是改變單元格的邊緣, 你可以使用LineStyle屬性如下所示。

例子:

Range("A26:A27").Borders.LineStyle = xlContinuous 'modified edge style 
Range("A26:A27").Borders.LineStyle = xlNone  'delete edge 
Range("A26").Interior.ColorIndex = 19    'change cell color 
Range("A26").Font.Bold = True      'put text in bold 
Range("A26").Value = "Example text"