G
Guest
I have the following script where I want to be able to password protect a
sheet but still allow Autofiltering to work. It protects the sheet but you
cannot Autofilter. Any ideas where I have gone wrong?
Sub Lock()
For Each ws In Worksheets
AllowFiltering:=True
ws.Protect Password = "password"
Next ws
End Sub
sheet but still allow Autofiltering to work. It protects the sheet but you
cannot Autofilter. Any ideas where I have gone wrong?
Sub Lock()
For Each ws In Worksheets
AllowFiltering:=True
ws.Protect Password = "password"
Next ws
End Sub