Hide a worksheet when workbook is opened

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I have about 8 worksheets, and I'd like to have some of them to be hidden from the beginning and remain hidden
 
Upvote 0
they must be open at some point! hide them then make them very hidden

  1. Press Alt-F11 to display the Visual Basic Editor
  2. in the Project window, double-click Microsoft Excel Objects and select the sheet to hide.
  3. Press F4 to display the Property box
  4. Set the sheet's Visible property to xlSheetVeryHidden.
To unhide the sheet, repeat these step, but set the Visible property to xlSheetVisible.
or
http://www.dailydoseofexcel.com/archives/2006/07/20/very-hidden-worksheets/
 
Last edited:
Upvote 0
You could also use
Code:
Sub Workbook_Open()
Sheets("Sheet1").Visible = False 'change sheet name to suit
End Sub
PAste this into the "This Workbook" module in the VBA Project
 
Upvote 0

Forum statistics

Threads
1,214,389
Messages
6,119,232
Members
448,879
Latest member
VanGirl

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