Can you sort on more than 3 columns in excel VBA? This is what I'm trying and it's not working.
Selection.Sort Key1:=Range("E2"
, Order1:=xlAscending, Key2:=Range("K2"
_
, Order2:=xlAscending, Key3:=Range("O2"
, Order3:=xlAscending, Key4:=Range("h2"
, order4:=xlAscending, key5:=Range("I2"
, order5:=xlAscending, Header:= _
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Selection.Sort Key1:=Range("E2"
, Order2:=xlAscending, Key3:=Range("O2"
xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom