Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Want to Check if Worksheet is protected or not. If not protected want to
protect with a password Something If it is protected ignore action. How to do this programatically |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If ActiveWorkbook.Sheets("Sheet2").Visible = -1 Then
ActiveWorkbook.Sheets("sheet2").Protect Password:="password" ActiveWorkbook.Sheets("Sheet2").Visible = False End If -- If this post helps click Yes --------------- Jacob Skaria "Ananth" wrote: Want to Check if Worksheet is protected or not. If not protected want to protect with a password Something If it is protected ignore action. How to do this programatically |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If Not ActiveSheet.ProtectContents Then _
ActiveSheet.Protect Password:="Something", DrawingObjects:=True, Contents:=True, Scenarios:=True Regards, Stefi Ananth ezt *rta: Want to Check if Worksheet is protected or not. If not protected want to protect with a password Something If it is protected ignore action. How to do this programatically |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With worksheets("SomesheetNameHere")
If .ProtectContents = True _ Or .ProtectDrawingObjects = True _ Or .ProtectScenarios = True Then 'do nothing, it's already protected Else .Protect Password:="Something" End If End With Ananth wrote: Want to Check if Worksheet is protected or not. If not protected want to protect with a password Something If it is protected ignore action. How to do this programatically -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spell check when worksheet is protected | Excel Discussion (Misc queries) | |||
unprotect check box in protected worksheet | Excel Discussion (Misc queries) | |||
Spell Check cells in Protected Worksheet? | Excel Discussion (Misc queries) | |||
spell check for protected worksheet for Excel 97 | Excel Discussion (Misc queries) | |||
Why doesn't spell check work on a protected worksheet? | Excel Worksheet Functions |