I have this code which works great:
Sub NewSortTest()
ActiveWorkbook.Worksheets(\"Sheet1\").Sort.SortFields.Clear
ActiveWorkbook.Worksheets(\"Sheet1\
I know this is an old thread but figured my approach seems worth sharing.
I stored the SortField as a variable then set the CustomOrder property as per below, it seems the complier will take the delimited string and convert it to whatever it requires. FYI loNewReport is a ListObject
Dim sField As SortField
Set sField = loNewReport.Sort.SortFields.Add(loNewReport.ListColumns("Branch").DataBodyRange, xlSortOnValues, xlAscending)
sField.CustomOrder = "QLD, NSW, VIC"
loNewReport.Sort.Apply
Set sField = Nothing