Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello, I have used the code below to unlock the autofilter on protected sheet in excel. I'm not very good at VBA, so could someon tell me how to change it so that it works for all of the sheets in th workbook instead of just 2005? Thanks Private Sub Workbook_Open() 'check for filter, turn on if none exists With Worksheets("2005") If Not .AutoFilterMode Then .Range("A4:C4").AutoFilter End If .EnableAutoFilter = True .Protect Password:="password", _ Contents:=True, UserInterfaceOnly:=True End With End Su -- veci ----------------------------------------------------------------------- vecia's Profile: http://www.excelforum.com/member.php...nfo&userid=211 View this thread: http://www.excelforum.com/showthread.php?threadid=46640 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofilter not working on protected sheet. | Excel Discussion (Misc queries) | |||
Use autofilter with macro in a protected sheet | Excel Discussion (Misc queries) | |||
Autofilter in protected sheet | Excel Worksheet Functions | |||
Applying autofilter to protected sheet | Excel Discussion (Misc queries) | |||
AutoFilter on a Protected sheet | Excel Programming |