Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Built In Support for Sorting Objects
I have an upcoming project requiring that VBA objects be sorted.
I know that I can write the objects out to a Worksheet and then sort the objects and re-read them. But I'd prefer to keep everything in memory. ... Um I've googled and discovered functions for Quicksort and Bubblesort. I could use those. But, Does Excel provide any support for sorting objects. Like Java does with the Comparable class or like C does with Quicksort and a pointer to a function. ..... To give you an idea of what I'm working on, objects are first sorted on a double, then the objects are broken into a partition and sorted within the partition, then the partitions are sorted, and then partitions of the partitions are sorted. Thanks. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Built In Support for Sorting Objects
Try something like this:
http://www.vbrad.com/pf.asp?p=source...collection.htm Or create a disconnected ADO recordset, populate its columns with your object properties and then sort that. Tim. wrote in message ups.com... I have an upcoming project requiring that VBA objects be sorted. I know that I can write the objects out to a Worksheet and then sort the objects and re-read them. But I'd prefer to keep everything in memory. .. Um I've googled and discovered functions for Quicksort and Bubblesort. I could use those. But, Does Excel provide any support for sorting objects. Like Java does with the Comparable class or like C does with Quicksort and a pointer to a function. .... To give you an idea of what I'm working on, objects are first sorted on a double, then the objects are broken into a partition and sorted within the partition, then the partitions are sorted, and then partitions of the partitions are sorted. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sorting Objects with the rest of the cells | Excel Discussion (Misc queries) | |||
Linking then Sorting Objects of the Link - Is this feasible? | Excel Discussion (Misc queries) | |||
Dynamically Assign Objects to Form Objects. | Excel Programming | |||
Unable to remove Sheet objects in the Microsoft Excel Objects | Excel Programming | |||
how was this built | Excel Programming |