Code for workbook protection
Hi - I have a macro which opens a file and prompts a password to open it. If
I enter the password the file opens. However, if I put in the wrong password
or hit cancel, it debugs. I am looking for some code that if the wrong
password is entered it comes up with a message to say the wrong password has
been entered - please try again. Additionally, if I hit cancel I want it to
stop the file open process.
Thanks in advance.
|