Hiding Sheets as Very Hidden using VBA

MartinS

Active Member
Joined
Jun 17, 2003
Messages
487
Office Version
  1. 365
Platform
  1. Windows
Hi All
Is it possible to set sheets to be very hidden (as is possible within the VBA environment) using VBA code?
Setting the sheets to visible is OK, but users can easily unhide them - I'd like to be able to ensure the user can only see the sheet I want.
Cheers
Martin
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

Sheets("SheetName").Visible = xlVeryHidden"
Will hide the sheet(s) and can only be made visible again through the use of VBA code. (As follows:)
Sheets("SheetName").Visible = True"

Hope this helps,
HalfAce
 
Upvote 0
Hi
Posted the question and then did a search and found the answer there. Good to know anyway so thanks for taking the time to reply - appreciated.
Regards
Martin
 
Upvote 0

Forum statistics

Threads
1,215,093
Messages
6,123,067
Members
449,090
Latest member
fragment

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