View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default sort numeric array

Arne,
One of these methods in VBA, depending on the number of elements:
http://www.google.co.uk/search?hl=en...G=Search&meta=

Or get Excel to do the sort for you:
Dump the array on a WS, out of the way
Sort on the WS
Pick up the sorted values.

NickHK

"Arne Hegefors" wrote in message
...
hi! I have an array with numbers. i want to sort the array based on the

size
of the numers. how can i do this? do I need to write a function for it or
does it exist in vba already? please help!