Hi everyone,
with code like this:
can you add a 4th parameter by adding in:
so it looks like this:
will that work?
if not, is there another way to do it?
Thanks
with code like this:
Code:
Cells.Select
Selection.Sort Key1:=Range("G2"), Order1:=xlAscending, Key2:=Range("M2") _
, Order2:=xlAscending, Key3:=Range("H2"), Order3:=xlAscending, Header:= _
xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal, DataOption2:=xlSortNormal, DataOption3:= _
xlSortNormal
can you add a 4th parameter by adding in:
Code:
Key4:=Range("I2"), Order4:=xlAscending,
so it looks like this:
Code:
Cells.Select
Selection.Sort Key1:=Range("G2"), Order1:=xlAscending, Key2:=Range("M2") _
, Order2:=xlAscending, Key3:=Range("H2"), Order3:=xlAscending-
, Key4:=Range("I2") ,Order4:=xlAscending,Header:= _
xlYes, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal, DataOption2:=xlSortNormal, DataOption3:= _
xlSortNormal
will that work?
if not, is there another way to do it?
Thanks