shiguera
Board Regular
- Joined
- Feb 7, 2003
- Messages
- 53
Hi every one,
I have a protected sheet and I use a macro to do some calculations. At the beginning of the macro I unprotect the sheet:
ActiveSheet.Unprotect
and it prompts me for the password. Fine so far. At the end of the code I protect the sheet:
ActiveSheet.Protect
The sheet apparently gets protected (I can't edit the cells, which is correct); however, I'm not prompted for the password to protect and if I go to the menu Tools-Protection-Unprotect Sheet... the sheet gets unprotected without asking me for the password. Could any one point out what I'm missing to get the sheet really protected and ask for the password every time I try to unprotect or protec it?
Note: the Workbook is also protected and I do not unprotect it at any time.
I have a protected sheet and I use a macro to do some calculations. At the beginning of the macro I unprotect the sheet:
ActiveSheet.Unprotect
and it prompts me for the password. Fine so far. At the end of the code I protect the sheet:
ActiveSheet.Protect
The sheet apparently gets protected (I can't edit the cells, which is correct); however, I'm not prompted for the password to protect and if I go to the menu Tools-Protection-Unprotect Sheet... the sheet gets unprotected without asking me for the password. Could any one point out what I'm missing to get the sheet really protected and ask for the password every time I try to unprotect or protec it?
Note: the Workbook is also protected and I do not unprotect it at any time.