Hello,
I am trying to do a custom sort on a UsedRange. The table is dynamic, but I will always want to sort on Column E.
I tried the code below, but it is throwing an error.
Thanks,
Barklie
I am trying to do a custom sort on a UsedRange. The table is dynamic, but I will always want to sort on Column E.
I tried the code below, but it is throwing an error.
Code:
Sub Macro3()
ActiveSheet.UsedRange.Sort Key1:=Range("E1"), Order1:=xlAscending, _
CustomOrder:="Hot,Warm,Neutral,Cool,DNC,Ineligible", Header:=xlYes
End Sub
Thanks,
Barklie