Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting Objects with the rest of the cells Garrett Excel Discussion (Misc queries) 2 March 4th 10 11:47 PM
Linking then Sorting Objects of the Link - Is this feasible? JennyJeneralGraves Excel Discussion (Misc queries) 0 January 7th 06 09:59 PM
Dynamically Assign Objects to Form Objects. The Vision Thing Excel Programming 2 December 11th 04 04:02 PM
Unable to remove Sheet objects in the Microsoft Excel Objects Adrian[_7_] Excel Programming 1 August 26th 04 10:49 PM
how was this built vincent Excel Programming 1 October 13th 03 09:17 PM


All times are GMT +1. The time now is 02:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"