Hi everyone,
I have got a complicated problem with me. I have got 10 sheets in a workbook and I have protected 9 sheets with a password. On the 10th sheet, I have protected it with a different password and unprotecting / protecting macro is included in a module. When it is run, sometimes the password of the other 9 sheets gets changed to that of the 10th sheet. Or otherwise the password of the 10th sheet gets changed to that of the other 9 . I don't know how it is happening.
I use MS Excel 2013.
Can some help me out ?
The code I use is :
Sheets ("10"). Unprotect "1"
Sheets ("10"). Protect "1"
Thanks.
I have got a complicated problem with me. I have got 10 sheets in a workbook and I have protected 9 sheets with a password. On the 10th sheet, I have protected it with a different password and unprotecting / protecting macro is included in a module. When it is run, sometimes the password of the other 9 sheets gets changed to that of the 10th sheet. Or otherwise the password of the 10th sheet gets changed to that of the other 9 . I don't know how it is happening.
I use MS Excel 2013.
Can some help me out ?
The code I use is :
Sheets ("10"). Unprotect "1"
Sheets ("10"). Protect "1"
Thanks.