PresidentEvil
New Member
- Joined
- Jan 2, 2021
- Messages
- 34
- Office Version
- 2021
- 2016
- Platform
- Windows
Hi,
I've recently made a MCQ test module that will help in preparing test papers with random questions from the question bank and conduct test and calculate the marks.
All of it has been coded and completed. Since this is MCQ test macro, there is a sheet named "Admin CP" that will do most of the work like generating questions, setting up timer, setting passing percentage etc.. This sheet will be hidden using another simple macro xlveryhidden. In order to unhide this sheet, I want to set up something where user inputs the password in Admin CP and then hide the worksheets.
If the admin wants to access this sheet again, he'll have to input the password which will be validated with the one that was setup earlier.
Below is the screenshot of the code that I've written. The "IF, Else, Then and =" doesn't seem to work. It either throws the warning message of incorrect password or unhides the sheets even if the password is incorrect.
Any help is highly appreciated. Thanks in advance.
I've recently made a MCQ test module that will help in preparing test papers with random questions from the question bank and conduct test and calculate the marks.
All of it has been coded and completed. Since this is MCQ test macro, there is a sheet named "Admin CP" that will do most of the work like generating questions, setting up timer, setting passing percentage etc.. This sheet will be hidden using another simple macro xlveryhidden. In order to unhide this sheet, I want to set up something where user inputs the password in Admin CP and then hide the worksheets.
If the admin wants to access this sheet again, he'll have to input the password which will be validated with the one that was setup earlier.
Below is the screenshot of the code that I've written. The "IF, Else, Then and =" doesn't seem to work. It either throws the warning message of incorrect password or unhides the sheets even if the password is incorrect.
Any help is highly appreciated. Thanks in advance.