I know how to password protect the contents of a sheet, but I'd like to hide it so that others cannot unhide it without a password. Is this a doable thing? Many thanks.
I know how to password protect the contents of a sheet, but I'd like to hide it so that others cannot unhide it without a password. Is this a doable thing? Many thanks.
When you hide the sheet, it must be done with VBA and use the VeryHidden parameter, this way it cannot be manually unhidden, it can only be unhidden with VBA.
My favorite way is to use a Worksheet_Deactivate() event in the sheet module of for all the sheets I want to be well hidden. When you are on the sheet and the step away to another sheet, it hides itself:
This code is in the Sheet2 and Sheet3 modules of the attached workbook.Please Login or Register to view this content.
Then on sheet1 are some buttons for accessing those hidden sheets. This is a simple password check.
Just a tip, in your real-workbook, do not put the actual name of the sheet on the button.Please Login or Register to view this content.
Also, be sure to protect the VBA project with a password as well, else someone can view the code to read the passwords.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks