Thread: Dynamic sort
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mg[_4_] mg[_4_] is offline
external usenet poster
 
Posts: 5
Default Dynamic sort

I have a set of 10 named cells that contain calculated dates. The name of each single cell ranges describes the date value. I would like to write a UDF that can be used to dynamically sort the dates and return them to the worksheet in sorted order.. I would end up with a list of 10 dates parried with their corresponding name. Changes in the model would recalculated the order of the list

I could not find a simple way to read the keyed pairs into an array or some other structure sort it and return to the worksheet (I am assuming as an array function).

Does anyone have an example of this? Or some ideas? Any help or hints would be appreciated.

Thanks