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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Yes.

Do you need the password obfuscated while being typed?
 
Upvote 0
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,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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