GridlineColor Property

Applies To

Window Object.

Description

Returns or sets the gridline color as an RGB value. Read-write.

See Also

DisplayGridlines Property, GridlineColorIndex Property.

Example

This example sets the gridline color in the active window in BOOK1.XLS to red.


Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate
ActiveWindow.GridlineColor = RGB(255,0,0)