bluepenink
Well-known Member
- Joined
- Dec 21, 2010
- Messages
- 585
hello
this is my code on workbook open, but for some reason, its not letting the auto filter to work...any suggestions?!
pls and thx u
this is my code on workbook open, but for some reason, its not letting the auto filter to work...any suggestions?!
Code:
Private Sub Workbook_Open()
For c = 1 To Sheets.Count
With Worksheets(c)
.EnableAutoFilter = True
.Protect Password:="analyst", userinterfaceonly:=True, Contents:=True, Scenarios:=True, _
AllowFormattingColumns:=True, AllowFormattingCells:=True, AllowFormattingRows:=True
.EnableOutlining = True
End With
Next c
End Sub
pls and thx u