Hello Excel forum,
I am relatively new to VBA and I am struggling with the following:
I have a sheet that is protected with a password.
I have a drop down list with io cell D7 with 2 selections: "Sales" or "Engineering".
Basically, when Sales use the sheet, they will only use it in the protected mode with "Sales" already selected in the drop down menu. I would like to be able to select "Engineering" from the the drop down list which should then prompt me to input the password to unprotect the entire sheet and unhide the cells that are hidden. If the incorrect password is input, a box saying "incorrect password" should appear and hte sheet should remain protected as it already is.
Note: Selecting "Engineering" from the drop down list when the sheet is not protected already unhides certain cells that only Engineering can use (hence why the sheet is protected for Sales as we do not want them to use the engineering cells)
Thank you very much for your help with this![]()
Bookmarks