Error when hiding GridLines

JazzzyJo

Board Regular
Joined
Jul 12, 2011
Messages
60
Hello all

I run a sub when with Workbook_Open that goes like this

Private Sub Workbook_Open()
Application.WindowState = xlMaximized
'Application.Run "hideRibbon"
'Application.DisplayFormulaBar = False
'ActiveWindow.DisplayWorkbookTabs = False
'Application.DisplayStatusBar = False
Worksheets("Start Page").Activate
WorkSheets("Start Page").Gridlines = False

I get error 438 : Object doesn't support this property or method on the last line.

The sheet is really called Start Page.
I tried with Activesheet.Gridlines = False and also Thisworkbook.Worksheet("Start Page").Gridlines = False but none of them are working.
What am I doing wrong?

Thank you for your help
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hello all

I run a sub when with Workbook_Open that goes like this

Private Sub Workbook_Open()
Application.WindowState = xlMaximized
'Application.Run "hideRibbon"
'Application.DisplayFormulaBar = False
'ActiveWindow.DisplayWorkbookTabs = False
'Application.DisplayStatusBar = False
Worksheets("Start Page").Activate
WorkSheets("Start Page").Gridlines = False

I get error 438 : Object doesn't support this property or method on the last line.

The sheet is really called Start Page.
I tried with Activesheet.Gridlines = False and also Thisworkbook.Worksheet("Start Page").Gridlines = False but none of them are working.
What am I doing wrong?

Thank you for your help
Disregard. Just found it. Was too fast on the gun.
DisplayGridlines = False

Not just Gridlines
 
Upvote 0
Solution

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top