GridlineColorIndex Property
Applies To
Window object.
Description
Returns or sets the gridline color as an index into the current color palette, or as one of the following XlColorIndex constants: xlColorIndexAutomatic or xlColorIndexNone. Read/write Variant.
Remarks
Set this property to xlColorIndexAutomatic to specify the automatic color.
See Also
Colors property, DisplayGridlines property, GridlineColor property.
Example
This example sets the gridline color in the active window to blue.
ActiveWindow.GridlineColorIndex = 5