I would like to protect worksheets with a password using a macro. Recording
the macro does not seem to install the password and the worksheet can be
unprotected. What needs to be added to the VBA code?
Thanks,
Dave Peterson - 23 Jan 2008 02:21 GMT
worksheets("somesheetnamehere").protect password:="topsecret"
> I would like to protect worksheets with a password using a macro. Recording
> the macro does not seem to install the password and the worksheet can be
> unprotected. What needs to be added to the VBA code?
>
> Thanks,

Signature
Dave Peterson