After running a VBA function on my spreadsheet, I would like to re-sort the data automatically, so the user doesn't have to. The sort options I'm trying to complete are as follows:
And my vba code is currently:
Columns("A:AA").Sort key1:=Range("C1:C1"), order1:=xlAscending, key2:=Range("G1:G1"), order2:=xlAscending, key3:=Range("A1:A1"), order3:=xlAscending, Header:=xlYes
As you can see, column A will sort properly, although the other 2 will not sort based on the Fail, Dismissed, Passed criteria and the Critical, High, Medium, Low
Is what I'm trying to do possible? Does anyone know a way to specify these Sort Orders?
