So I am using the below code to sort based on the parameters in order and it works except the very first status "ETOX" keeps going to the bottom instead of the top.
I can change to descending but then the order is incorrect.
What am I missing here?
I can change to descending but then the order is incorrect.
What am I missing here?
Code:
Sub SteriSort()' Sort by Steri Macro
Call Steri_Dec
With ST.Sort
.SortFields.Clear
.SortFields.Add Key:=SteriS, SortOn:=xlSortOnValues, Order:=xlAscending _
, CustomOrder:="ETOX, ETOXCNWY, ETOXNMTF, ETOXODFL, ETOXFXFE, ETOXLMEL, ETOXGGJ, ETOXMSP, ETOXREPL" _
, DataOption:=xlSortNormal
.Header = xlYes
.Apply
End With
End Sub
Last edited: