Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is what i currently use to auto protect sheet, but i want to add a
password to this, (2468) so that the protection is password protected, but i do not know how the current syntax can be adjusted to perform this request? I tried to put a password on the regular way of protect and then entering a pword, however when the workbook opens up it goes into a debug error and I have to have this sheet protected automatically because without it set up that way one of my macros doesnt work. Option Explicit Private Sub Workbook_Open() ThisWorkbook.Sheets("Patrol Log") _ .Protect DrawingObjects:=True, _ contents:=True, Scenarios:=True, _ UserInterfaceOnly:=True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to set auto protect workbook on exit? | Excel Worksheet Functions | |||
How do I auto-protect a worksheet? | Excel Worksheet Functions | |||
can I send authentication data i.e. username & pword from an exce. | Excel Programming | |||
auto protect or run VBA? | Excel Programming | |||
Macro to protect with pword in 97 | Excel Programming |