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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,213,487
Messages
6,113,941
Members
448,534
Latest member
benefuexx

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