Display of gridlines

F

Financeguy

Is there an easy way of turning off all gridlines in an excel workbook
document (all worksheets) before I execute my vba routine.
Request your help with the syntax.
Thanks in advance.
 
A

Abdul

Sub Test
For Each xwindow In Application.Windows
xwindow.Activate
For Each Sh In ActiveWorkbook.Worksheets
Sh.Activate
ActiveWindow.DisplayGridlines = False
Next Sh
Next xwindow
end sub

====
Please Click YES if this helped you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

display gridlines 5
Userforms - listbox gridlines? 1
Gridlines 1
No borders/gridlines around some cells 2
Copy a spreedsheet 2
Restoring Gridlines 3
"Read only" warning display 4
Faint gridlines 2

Top