I'm trying to use the following code to allow the user to autofilter a protected sheet but it isn't working. Anyone know why?
![]()
With Sheet1 .Protect Password:="yyz", DrawingObjects:=True, Contents:=True, UserInterfaceOnly:=True, _ AllowFormattingCells:=True, AllowFormattingColumns:=True, AllowFormattingRows:=True, _ AllowFiltering:=True .EnableOutlining = True .EnableAutoFilter = True End With
Bookmarks