conoromuiri
New Member
- Joined
- Oct 31, 2011
- Messages
- 25
Hi all,
I have some data that I was sorting previously by 3 different columns with the following code:
Now I need to add another column to sort by... I tried adding 'key4' but it didn't seem to work for me...
Any ideas?
I have some data that I was sorting previously by 3 different columns with the following code:
Code:
Range("A2:R1500").Select
Selection.Sort Key1:=Range("C3"), Order1:=xlAscending, Key2:=Range("A3"), _
Order2:=xlAscending, Key3:=Range("R3"), Order3:=xlAscending, Header:= _
xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal, DataOption2:=xlSortNormal, DataOption3:= _
xlSortNormal
Now I need to add another column to sort by... I tried adding 'key4' but it didn't seem to work for me...
Any ideas?