I am trying to set up a spreadsheet to lock specific cells if a check box is clicked. I have gotten the locked cells to work but am trying to take it one step further and put a password on the checkbox so that only a manger (with the password) can lock or unlock the cells and then be able to add or delete data in the specific cells.
I have created a userform which prompts for a password when the checkbox is clicked. The only trouble I am having is linking the userform and the checkbox....
When I click the checkbox the userform appears and asks for a password. If the correct password is entered the userform closes, if incorrect another msg box appears stating it was an invalid password. Does anyone have any ideas as to get this to work? Right now, a user could click the checkbox then when prompted, click cancel, and the check box will change (checked or unchecked). I would like it so that the checkbox would be change being checked or unchecked only if the correct password is given.
Any ideas would be greatly appreciated.
I have created a userform which prompts for a password when the checkbox is clicked. The only trouble I am having is linking the userform and the checkbox....
When I click the checkbox the userform appears and asks for a password. If the correct password is entered the userform closes, if incorrect another msg box appears stating it was an invalid password. Does anyone have any ideas as to get this to work? Right now, a user could click the checkbox then when prompted, click cancel, and the check box will change (checked or unchecked). I would like it so that the checkbox would be change being checked or unchecked only if the correct password is given.
Any ideas would be greatly appreciated.