![]() |
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 |
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 |
All times are GMT +1. The time now is 01:15 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com