Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sorting w/Macros
I know how to set the "KeyX:=Range" using a variable, but is there any
way I can also set the "OrderX" value (either xlAscending or xDecending) using a variable? -pb |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sorting w/Macros
dim lOrder as Long, rng as Range
lOrder = xlAscending set rng = Range("C1") Range("A1").Currentregion.Sort Key1:=rng, _ Order1:=lOrder, Header:=xlYes -- Regards, Tom Ogilvy "cubbybear3" wrote in message ups.com... I know how to set the "KeyX:=Range" using a variable, but is there any way I can also set the "OrderX" value (either xlAscending or xDecending) using a variable? -pb |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macros for sorting data | Excel Worksheet Functions | |||
sorting with macros | Excel Discussion (Misc queries) | |||
Sorting columns with macros | Excel Programming | |||
Sorting columns with macros | Excel Programming | |||
help with dataform and sorting macros | Excel Programming |