bluepenink
Well-known Member
- Joined
- Dec 21, 2010
- Messages
- 585
hello
wondering how i can allow the user to apply the "auto filter", while the sheet is proteted.
here is my current code:
thx you!!!!
wondering how i can allow the user to apply the "auto filter", while the sheet is proteted.
here is my current code:
Code:
Sub ProtectAllSheets()
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.Protect Password:="analyst", DrawingObjects:=True, _
Contents:=True, Scenarios:=True, AllowFormattingColumns:=True, AllowFormattingRows:=True, userinterfaceonly:=True, AllowFormattingCells:=True
ws.EnableSelection = xlNoRestrictions
Next ws
End Sub
thx you!!!!