I have a macro that prompts for a password to unprotect a sheet and once entered, does a bunch more stuff. If the wrong password is entered is gives an error message and cancels the rest of the routine as it should. However, if I hit the 'cancel' button it goes on ahead with the routine which it is NOT supposed to do. I don't know syntax for popup boxes.
How do I code it so if someone clicks 'cancel' it exits the subroutine?
Probably a dumb question but I'm dumb when it comes to Visual Basic
How do I code it so if someone clicks 'cancel' it exits the subroutine?
Probably a dumb question but I'm dumb when it comes to Visual Basic