Hide gridlines in a worksheet

Macro Title:
Worksheet Variable:
Gridlines Display Option:
Worksheet Name:
Comment:

'

Sub Hide_Gridlines()
Dim ws As Worksheet
Set ws = Worksheets("Sheet2")
'hide gridlines in a worksheet named Sheet2

ws.Activate
ActiveWindow.DisplayGridlines = False

End Sub