VBA and Password Protection
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, |
VBA and Password Protection
worksheets("somesheetnamehere").protect password:="topsecret"
Todd from Gold River wrote: 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 |
All times are GMT +1. The time now is 12:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com