返回或设置网格线颜色,其值为当前调色板中的索引,或以下 XlColorIndex 常量之一。
XlColorIndex 可为以下 XlColorIndex 常量之一。 |
xlColorIndexAutomatic |
expression.GridlineColorIndex
expression 必需。该表达式返回“应用于”列表中的对象之一。
将此属性设置为 xlColorIndexAutomatic,则可自动设定颜色。
下列图示给出了默认调色板中的颜色编号值。
本示例将当前窗口中的网格线颜色设为蓝色。
ActiveWindow.GridlineColorIndex = 5