I know what I want to say in English but can't come up with the right code that will do what I want. Here's kind of what I want the code to do using my English/VBA sub-dialect. Sorry for the non-technicalness of the code:
On error goto handler
Handler:
if the worksheet is protected then
unprotect the worksheet
resume the sub
then protect the worksheet that was just unprotected
I apologize if this makes little to no sense.
On error goto handler
Handler:
if the worksheet is protected then
unprotect the worksheet
resume the sub
then protect the worksheet that was just unprotected
I apologize if this makes little to no sense.