Sort Order
On Thu, 21 Mar 2013 11:45:29 +0000, JonathanK1 wrote:
Then for my needs, shouldn't this work?
Cells.Sort Key1:=Range("C:C"), Order1:=xlDescending,
CustomOrder:="67,08,47,41,25,03,7,6,23"
It doesn't though, for whatever reasons.
Works for me. Those values are at the top, other values sort below per excel sort rules.
Probably something about your data. If your customorder keys are a part of the string to be sorted, you may need to break them out into a helper column, and sort on that column. Don't forget to format as text so as to retain the leading zero's
|