megera716
Board Regular
- Joined
- Jan 3, 2013
- Messages
- 144
- Office Version
- 365
- Platform
- Windows
I have a workbook that is password protected just using Excel's Protect Workbook function (you must enter the password as soon as you open the file or it just doesn't open/you can't see anything).
The workbook has 4 sheets -- Accounts, Finance, HR and Master.
I would like to make it so when you first open the file, it prompts for a password and if you enter a certain password -- let's say "Masterpass" -- all 4 sheets are visible. And if you enter a different password -- "Limitedpass" -- you can only see the Accounts and Finance sheets. Nothing is visible until you enter one of the two passwords.
When a user closes the workbook, when they re-open it (even if just a minute later), it should prompt for the password all over again and not let them see anything until they enter one.
I've been reading endless Google results and I see a lot about this "veryhidden" function but that you actually have to go into the VBA to make it do that and I don't know -- mine just isn't working. But above is what I want it to do. Help please?
The workbook has 4 sheets -- Accounts, Finance, HR and Master.
I would like to make it so when you first open the file, it prompts for a password and if you enter a certain password -- let's say "Masterpass" -- all 4 sheets are visible. And if you enter a different password -- "Limitedpass" -- you can only see the Accounts and Finance sheets. Nothing is visible until you enter one of the two passwords.
When a user closes the workbook, when they re-open it (even if just a minute later), it should prompt for the password all over again and not let them see anything until they enter one.
I've been reading endless Google results and I see a lot about this "veryhidden" function but that you actually have to go into the VBA to make it do that and I don't know -- mine just isn't working. But above is what I want it to do. Help please?