Hello all
I am trying to protect part of my worksheet but still allow sort by filter but this line of code that I put together is not working out, any idea's please
I am trying to protect part of my worksheet but still allow sort by filter but this line of code that I put together is not working out, any idea's please
Code:
Rows("14:1048576").Select
Selection.Locked = False
Selection.FormulaHidden = False
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowSorting:=True, AllowFiltering:=True
ActiveSheet.Protect "Test"