Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone help me write 2 macros to turn on and turn off password
protection? I want to be able to add these to macros I already have so that the user doesn't get the enter password screen. For arguments sake, the password is "monkey". Thanks, Nick |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Nick,
sub Unprotect dim ws as worksheet for each ws in activeworkbook.worksheets ws.unprotect "monkey" next ws end sub sub Protect dim ws as worksheet for each ws in activeworkbook.worksheets ws.protect "monkey" next ws end sub Regards, Ivan |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That's great, thanks Ivan.
"Ivan Raiminius" wrote: Hi Nick, sub Unprotect dim ws as worksheet for each ws in activeworkbook.worksheets ws.unprotect "monkey" next ws end sub sub Protect dim ws as worksheet for each ws in activeworkbook.worksheets ws.protect "monkey" next ws end sub Regards, Ivan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password protection in macro ( Anybody can view my password in VB | Excel Discussion (Misc queries) | |||
Excel Data Protection- AKA: Sheet/Macro Password Protection | Setting up and Configuration of Excel | |||
password protection | Excel Discussion (Misc queries) | |||
Password Protection | Excel Discussion (Misc queries) | |||
Password Protection | Excel Discussion (Misc queries) |