In one of my macros, I unprotect a shared workbook. I haven't programmed the password into the code. I admit, mainly because I was having problems with it, and decided that entering it manually wasn't such huge deal LOL. The line of code I'm using is simple "ActiveWorkbook.UnprotectSharing".
This morning I typed in the wrong password and got an end/debug error message. Ideally, I'd like to either have the password as part of the code, or allow for repeat entry of the password if it's incorrect. Or, failing either of those, an end macro message (which would be messy because I end up with a partly created backup file).
This morning I typed in the wrong password and got an end/debug error message. Ideally, I'd like to either have the password as part of the code, or allow for repeat entry of the password if it's incorrect. Or, failing either of those, an end macro message (which would be messy because I end up with a partly created backup file).