Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Morning all.
I have multiple worksheets that are displaying the gridlines. This appears to be fairly common across numerous workbooks, so I'd like to make a macro that will turn off the display gridlines. I recorded a macro that turned off the grid lines for a single worksheet, now I need to put in a for loop to iterate through all of the sheets in the file. I tried the following and it hangs up on the "If sh.DisplayGridlines = True Then" statement, stating it cannot perform this task-- "object does not support this property or method" a 438 error. Any ideas on how to make one that does work? Thank you. Sub Grids() ' ' grids Macro ' turn off grid lines ' For Each sh In ActiveWorkbook.Worksheets If sh.DisplayGridlines = True Then sh.DisplayGridlines = False End If Next ' ActiveWindow.DisplayGridlines = False End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Display of gridlines | Excel Programming | |||
display gridlines with fill color | Excel Discussion (Misc queries) | |||
gridlines won't display | Excel Discussion (Misc queries) | |||
my excel worksheet will not display gridlines | Excel Worksheet Functions | |||
How to display gridlines at irregular intervals? | Charts and Charting in Excel |