Removed Contents :=True and still get same error.
This is what the event code looks like now:
Private Sub Workbook_Open()
With ActiveWorkbook.Sheets("Sheet1")
.EnableAutoFilter = True
.Protect userInterfaceOnly:=True
End With
End Sub
?
I have a user that has a spreadsheet she wants people to be able to filter on and also have some (not all) the cells protected.
I found a some good advice on using a Macro on the Workbook open event to accomplish this:
Private Sub Workbook_Open()
With...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.