how do I sort more than 3 columns?
Posted by Stacy on March 26, 2001 2:12 PM
Right now I have the following code to sort. If I try and manipulate it to add a 4th sort I get an error. Is there a way to add 4 to this...or do I have to totally re-write it another way. Thanks in advance!!
Sheets("Sheet1").Activate
Range("B10").Select
Selection.sort Key1:=Range("H7"), _
Order1:=xlAscending, _
Key2:=Range("B7"), _
Order2:=xlAscending, _
Key3:=Range("C7"), _
Order3:=xlAscending, _
Header:= _
xlGuess, _
OrderCustom:=1, _
MatchCase:=False, _
Orientation:=xlTopToBottom