Code:Sub nogrids() For Each Sheet In Sheets Sheet.Activate ActiveWindow.DisplayGridlines = False Next Sheet End Sub
Sub nogridsexceptdata()
For Each Sheet In Sheets
If Sheet.Name <> "Rawdata" Then
Sheet.Activate
ActiveWindow.DisplayGridlines = False
End If
Next Sheet
End Sub
Sub nogridspastdata()
shcount = Sheets.Count
datacount = Sheets("Rawdata").Index
For i = datacount + 1 To shcount
Sheets(i).Activate
ActiveWindow.DisplayGridlines = False
Next i
End Sub
To take the grid off of all sheets except Rawdata:
or to take the grid off of all sheets AFTER (to the right of) RawdataCode:Sub nogridsexceptdata() For Each Sheet In Sheets If Sheet.Name <> "Rawdata" Then Sheet.Activate ActiveWindow.DisplayGridlines = False End If Next Sheet End Sub
Code:Sub nogridspastdata() shcount = Sheets.Count datacount = Sheets("Rawdata").Index For i = datacount + 1 To shcount Sheets(i).Activate ActiveWindow.DisplayGridlines = False Next i End Sub