Hello!

I have a sheet protected and filters enabled. I use this code to enable sort and filters:
ActiveSheet.Protect userinterfaceonly:=True, Password:="1", AllowSorting:=True, AllowFiltering:=True, AllowFormattingColumns:=True
nevetherless, when I try to sort, I receive this message in excel: "The cell or chart you re trying to change is on a protected sheet.
ro make changes, click Unprotect Sheet in the Review tab (you might need a password)."

How I should to modify the code?
Thanks