F
FrankB
I have files whereby I have certain cells LOCKED. When I
put the password protection on from the file itself
everything works fine and it only protects certain cells
that I have locked and leaves the unlocked cells available
for data entry, however when I call it up from a VBA
statement it looks the entire worksheet. The code is
below.
Thanks
Frank
Workbooks.Open Filename:= _
"G:\04Plan\Cap Models\Project Managers\1040 Cap
Model.xls"
Application.Calculate
Sheets("Vertical").Select
Selection.Locked = False
Selection.FormulaHidden = False
ActiveSheet.Protect Password:="1040",
DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveWorkbook.Save
ActiveWorkbook.Close
put the password protection on from the file itself
everything works fine and it only protects certain cells
that I have locked and leaves the unlocked cells available
for data entry, however when I call it up from a VBA
statement it looks the entire worksheet. The code is
below.
Thanks
Frank
Workbooks.Open Filename:= _
"G:\04Plan\Cap Models\Project Managers\1040 Cap
Model.xls"
Application.Calculate
Sheets("Vertical").Select
Selection.Locked = False
Selection.FormulaHidden = False
ActiveSheet.Protect Password:="1040",
DrawingObjects:=True, Contents:=True, Scenarios:=True
ActiveWorkbook.Save
ActiveWorkbook.Close