Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Turning off/on protection in a macro
How do you turn off and on the protection of a workbook in a macro?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Turning off/on protection in a macro
Worksheets("Sheet1").Unprotect
or Worksheets("Sheet1").Unprotect password:="whatever" If you include the UserInterfaceOnly flag when you Protect the sheet, your VBA code can do whatever it wants on a protected sheet. E.g., Worksheets("Sheet1").Protect UserInterfaceOnly:=True -- Cordially, Chip Pearson Microsoft MVP - Excel, 10 Years Pearson Software Consulting www.cpearson.com (email on the web site) "Lucas" wrote in message ... How do you turn off and on the protection of a workbook in a macro? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Turning off/on protection in a macro
Activeworkbook.Protect
Activeworkbook.Unprotect HTH Otto "Lucas" wrote in message ... How do you turn off and on the protection of a workbook in a macro? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Protection- AKA: Sheet/Macro Password Protection | Setting up and Configuration of Excel | |||
Turning Off Protection Notification | Excel Discussion (Misc queries) | |||
Turning a Macro into an add-in for Excel? | Excel Worksheet Functions | |||
Turning a Macro into an add-in for Excel? | Excel Programming | |||
Turning off macro disabled pop-up | Excel Programming |