Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have recently migrated data from one excel sheet to another. However it is now required to protect all the migrated sheets. I wish to do this via code rather than go into each sheet and protect. I have opened each sheet with code and used the following code : xl.ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _ , AllowFormattingCells:=True, AllowFormattingRows:=True However, i can not put the password in, this just protects the sheet with no password, is there a way of adding the password to the code? Thanks Nathan. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
protecting formulas without protecting sheet so grouping still wor | Excel Discussion (Misc queries) | |||
Protecting sheet | Excel Discussion (Misc queries) | |||
protecting sheet | New Users to Excel | |||
Protecting Sheet | Excel Programming | |||
Can't use tab after protecting sheet. | Excel Discussion (Misc queries) |