Hi,
I am using the following code to protect all the worksheets in my workbook when the workbook is opened.
It works great, but only if I stick to the same password. If I try to change the password I get a Run-time error '1004' saying the password I supplied is not correct. However, the new password which I've added to the code does work when I manually unprotect the sheets with the Unprotect Sheet function. I've tried deleting the code completey, unprotecting each worksheet, then saving and reopening and adding the code back and I still get the error.Please Login or Register to view this content.
Does anyone know what might be happening or how to get rid of the Run-time error?
Please let me know.
Best,
Andrej
Bookmarks