R
Raj
Hi,
I have the following code in a module:
Sub ProtectWorkbook()
ThisWorkbook.Protect Structure:=True, Windows:=False, password:="xxxx"
End Sub
When I run this, the workbook remains unprotected. I am using Excel
2007. Am I doing anything wrong?
(I tried running through the code using F8. It runs but the workbook
remains unprotected).
Thanks in advance for the help.
Regards,
Raj
I have the following code in a module:
Sub ProtectWorkbook()
ThisWorkbook.Protect Structure:=True, Windows:=False, password:="xxxx"
End Sub
When I run this, the workbook remains unprotected. I am using Excel
2007. Am I doing anything wrong?
(I tried running through the code using F8. It runs but the workbook
remains unprotected).
Thanks in advance for the help.
Regards,
Raj