Use macro button to unhide veryhidden sheets and password protect it

CV899000

Board Regular
Joined
Feb 11, 2016
Messages
98
Hi,

I have several sheets that are I have set to become veryhidden when closing my workbook.

I have a macrobutton that I can press, and it will unhide the sheets.

Can I somehow create a password that I have to enter when pressing the macro to unhide the sheets?
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Thank you. Sorry, I should have asked you to post the code you have that is unhiding stuff. Please use code tags for posting code, like: [code=rich]'...your code between the tags[/code]

Have you used/created userforms before?

Mark
 
Upvote 0
Hello,

Yes, sorry about that.

Yes, I have done it once before. So I now how to do it, but I just need help with the code part.
 
Upvote 0
If I have to create a userform, can I then also have the user input a username e.g. the users e-mail address and a password?

E.g. I have one user that need to use several sheets by unhiding them with the macrobutton, we can call him a kind of superuser.

Then I have myself, as a kind of admin that needs to be able to access all sheets with the macrobutton,

then I have all other users that should not be able to "login" to unhide the sheets.
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,460
Members
448,965
Latest member
grijken

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