Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a template worksheet that I am trying to use a macro to set passwords
to protect: 1) the workbook level to allow only employee access 2) the worksheet level to protect formulas from being overwritten and limit access to myself The attached macro saves the template as a separate filename and tries to accomplish the objectives listed above. But when I go into the saved worksheet, only the workbook is protected. The worksheet isn't. What am I doing wrong? Sheets("Selections1").Select ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="PASSWORD1" Sheets("Selections2").Select ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True, Password:="PASSWORD1" myFileName = Sheet8.Range("D2").Value & Sheet8.Range("B2").Value ActiveWorkbook.SaveAs Filename:="V:\Selections\Jobs\" & myFileName & ".xls", _ FileFormat:=xlNormal, Password:="PASSWORD2", WriteResPassword:="", _ ReadOnlyRecommended:=False, CreateBackup:=True |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Worksheet Protection | Excel Worksheet Functions | |||
Cell Protection vs. Worksheet Protection | Excel Discussion (Misc queries) | |||
Worksheet protection is gone and only wokbook protection can be se | Excel Discussion (Misc queries) | |||
Worksheet Protection | Excel Discussion (Misc queries) | |||
worksheet protection | Excel Programming |