Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

turning off grid lines

Status
Not open for further replies.

christhedonstar

Programmer
Apr 9, 2007
215
GB
Is there anyway to turn of gridlines on each sheet in a workbook without selecting them first?

e.g.

Dim myWorksheet As Worksheet

Set myWorksheet = Worksheets("sheetName")
myWorksheet.Select
myWorksheet.Application.Windows(1).DisplayGridlines = False

Cheers,

Chris
 
It would appeaar not as displaygridlines is a property of the WINDOW rather than the WORKSHEET


For each ws in thisworkbook.worksheets
ws.activate
activewindow.displaygridlines = false
next

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top