Hiding Workbook tabs

nbannon

New Member
Joined
Aug 4, 2002
Messages
23
I want to hide all of the workbooktabs in my spreadsheet. I'm guessing I can use the following code:

Windows.DisplayWorkbookTabs = False

The problem is, I don't know where to put the code, or how to invoke it ?

Cheers
Noel.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Why don't you click the Tools | Options... menu command's View tab and uncheck the Window option for "Sheet tabs"?
This message was edited by Mark W. on 2002-09-10 15:57
 
Upvote 0
When in doubt... Record it... and you get...

ActiveWindow.DisplayWorkbookTabs = False
This message was edited by Mark W. on 2002-09-10 16:35
 
Upvote 0
The code is almost right...

put it in a Standard module, should be something like

Sub HideTabs()
ActiveWindow.DisplayWorkbookTabs = False
End Sub
 
Upvote 0
On 2002-09-10 16:14, Mark W. wrote:
When in doubt... Record it... and you get...

ActiveWindow.DisplayWorkbookTabs = False
This message was edited by Mark W. on 2002-09-10 16:35

Ahh... I forgot to quote you ! :biggrin: But, yes, I agree. That is the best source of "good" VBA syntax
 
Upvote 0

Forum statistics

Threads
1,214,614
Messages
6,120,525
Members
448,969
Latest member
mirek8991

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