vba - "custom" xlDescending ordering -


i have list of dates, "tbd". if order them so:

range("a6:i100").currentregion.sort key1:=range("a6"), order1:=xldescending, header:=xlguess 

it orders "tbd" before actual dates. possible reverse this? want have dates - in descending order - first, , "tbd"s

thx

for sorting may try this:

dim sortarr1 variant sortarr1 = array("tbd") application.addcustomlist listarray:=sortarr1  range("a6:i100").sort key1:=range("a6"), order1:=xldescending, _     header:=xlguess, ordercustom:=application.customlistcount + 1 application.deletecustomlist application.customlistcount 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -