Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Groups and Protected Worksheets - know if protected
Hi,
I've been using this Workbook code for a while and it works great to allow protected sheets and outline to work together. Private Sub Workbook_Open() Dim mySheetNames As Variant Dim iCtr As Long mySheetNames = Array("Summary", "Concept", "Approval", "Definition", "Planning", "Implementation", "Closeout") For iCtr = LBound(mySheetNames) To UBound(mySheetNames) With Worksheets(mySheetNames(iCtr)) .Protect Password:="hi", userinterfaceonly:=True .EnableOutlining = True '.EnableAutoFilter = True 'If .FilterMode Then ' .ShowAllData 'End If End With Next iCtr End Sub Today, I realized that it locks the worksheets every time I open the spreadsheet. Is there a way to recognize if the worksheets are protected or not and leave them that way when the spreadsheet is opened? This spreadsheet will be used by thousands of people so I'd really appreciate help because it can't be used otherwise. Thank you, Michele |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Edit text format in non-protected cells in protected worksheet | Excel Discussion (Misc queries) | |||
Expanding and Collapsing Groups within a Protected Workbook | Excel Worksheet Functions | |||
Expand and Collaps Groups while Protected | Excel Worksheet Functions | |||
how can I allow users to open groups in a protected worksheet? | Excel Discussion (Misc queries) | |||
Protected worksheets | Excel Discussion (Misc queries) |