Hi,
I've just used this to sort my data first ascending (row number column), then descending (name column):
Unfortunately the descending part dosn't work, the output is in ascending order.
I have also just tried doing this manually and it dosn't work either!
Any advice on what I may be doing wrong would be much appreciated.
Kind regards,
Roy
I've just used this to sort my data first ascending (row number column), then descending (name column):
Code:
Set WS = wb1.Worksheets(vGroupName)
Set rSortRange = WS.Range(vColumnLetterToSortGroupBy2 & "1")
rSortRange.Sort Key1:=WS.Range(wb1EndColLetterPlus1vGroupName & "1"), Order1:=xlAscending, _
Key2:=WS.Range(vColumnLetterToSortGroupBy2 & "1"), Order2:=xlDescending, _
Header:=xlYes, OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom, DataOption1:=xlSortNormal, _
DataOption2:=xlSortNormal ', DataOption3:=xlSortNormal
Unfortunately the descending part dosn't work, the output is in ascending order.
I have also just tried doing this manually and it dosn't work either!
Any advice on what I may be doing wrong would be much appreciated.
Kind regards,
Roy