Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have two worksheets which I have defined the columns with AutoFilter. I
have the sheets protected. When a user opens the sheet they can use those predefined filters. I currently have the following code in WorkBook_Open. Is this code even required ...if so is what I have correct? Occasionally, the AutoFilter pull-downs stop working for some reason. Current fix is to exit workbook and re-open it ....Auto-filters are fine Using Excel 2000 Private Sub Workbook_Open() On Error GoTo addError With Worksheets("PDSR") If Not .AutoFilterMode Then .Unprotect Password:="12345" .Range("A6:D6").AutoFilter End If .EnableAutoFilter = True .Protect Password:="12345", _ Contents:=True, UserInterfaceOnly:=True End With With Worksheets("CompletionTable") If Not .AutoFilterMode Then .Unprotect Password:="12345" .Range("C6:I6").AutoFilter End If .EnableAutoFilter = True .Protect Password:="12345", _ Contents:=True, UserInterfaceOnly:=True |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
AutoFilter on Protected Worksheet Excel 2003 | Excel Discussion (Misc queries) | |||
AUTOFILTER IN A PROTECTED WORKSHEET | Excel Discussion (Misc queries) | |||
AutoFilter can't work after the worksheet is being protected!!! | Excel Programming | |||
Using Autofilter on a Protected Worksheet | Excel Discussion (Misc queries) | |||
enable autofilter in a protected worksheet in Excel 97 | Excel Worksheet Functions |