Expand Minimize
This topic has not yet been rated - Rate this topic

Window.DisplayGridlines Property (Excel)

True if gridlines are displayed. Read/write Boolean.

expression .DisplayGridlines

expression A variable that represents a Window object.

This property applies only to worksheets and macro sheets.

This property affects only displayed gridlines. Use the PrintGridlines property to control the printing of gridlines.

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) 

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.