Applies To
Window Object.
Description
True if gridlines are displayed. Read-write.
Remarks
This property applies only to worksheets and macro sheets.
This property affects only displayed gridlines. Use the PrintGridlines property to control gridline printing.
Example
This example toggles the display of gridlines in the active window in BOOK1.XLS.
Workbooks("BOOK1.XLS").Worksheets("Sheet1").Activate ActiveWindow.DisplayGridlines = Not(ActiveWindow.DisplayGridlines)