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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
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
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654

ADVERTISEMENT

When in doubt... Record it... and you get...

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

Juan Pablo González

MrExcel MVP
Joined
Feb 8, 2002
Messages
11,959
The code is almost right...

put it in a Standard module, should be something like

Sub HideTabs()
ActiveWindow.DisplayWorkbookTabs = False
End Sub
 

Juan Pablo González

MrExcel MVP
Joined
Feb 8, 2002
Messages
11,959
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
 

Forum statistics

Threads
1,144,274
Messages
5,723,440
Members
422,497
Latest member
dougy99

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
Top