Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have to unprotect sheets during a macro, move some data, then reprotect.
I'm using an 8 character password. Before running the macro, ToolsProtectionUnprotect sheet prompts for the password. But after running the macro (and remember the macro does reprotect with the 8 character password), it is protected, but ToolsProtectionUnprotect sheet unprotects it without requiring a password. I need the formulas and macro code to be inaccessible to users. Is there some syntax I need to add to make this happen? It seems like the protect/unprotect in VBA is somehow separate from the protect/unprotect in the workbook itself. Here's what I'm using: ActiveSheet.Unprotect Password:="xxxxxxxx" 'data manipulations ActiveSheet.Protect Password:="xxxxxxxx", DrawingObjects:=True, Contents:=True, Scenarios:=True |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Protection Best Practice: AKA: Real Sheet Protection | Excel Discussion (Misc queries) | |||
Excel Data Protection- AKA: Sheet/Macro Password Protection | Setting up and Configuration of Excel | |||
How to find and Replace hyperlink in hold sheet? | Excel Discussion (Misc queries) | |||
How can I hold every other row color on a sheet when I sort | Excel Discussion (Misc queries) | |||
Hold closing the sheet... | Excel Programming |