For reasons that remain unclear some code I used to unprotect a sheet has stopped working
I know it used to work before, oddly enough I can unprotect it in the manual way, by going to Review and Unprotect sheet, so I know there is nothing wrong with the password
The code I have used is
s1 being the name assigned to the current sheet.
I had also tried, just to make sure s1 was correctly assigned
But this doesn't work either
I don't get any error when I step through it
Any ideas please ?
Thanks
I know it used to work before, oddly enough I can unprotect it in the manual way, by going to Review and Unprotect sheet, so I know there is nothing wrong with the password
The code I have used is
Code:
s1.UnProtect Password = 0123
s1 being the name assigned to the current sheet.
I had also tried, just to make sure s1 was correctly assigned
Code:
ActiveSheet.UnProtect Password = 0123
But this doesn't work either
I don't get any error when I step through it
Any ideas please ?
Thanks
Last edited: