ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Setting worksheet protection password in VBA (https://www.excelbanter.com/excel-programming/278915-re-setting-worksheet-protection-password-vba.html)

Mark Bochner

Setting worksheet protection password in VBA
 
"Tim Lund" wrote in message ...
In VB, how can I get a prompt for a password to come up?
When I record a macro, all I get in activesheet.protect
and some stuff about objects, etc, but nothing to prompt
for password.

Tim


activesheet.protect password:= opensesame or activesheet.unprotect opensesame


All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com