Sorting arrays - Excel97 VBA 
Author Message
 Sorting arrays - Excel97 VBA

I saw a post on this subject recently - but did not see any reply.

I need to sort large 2 dimensional arrays, and although I do have a "brute
force" routine it is only usable for fairly small arrays - it becomes
impossibly slow for the 6000+ size I need to sort.

Can any one help?

Apologies in advance for not thanking any helpful respondents - Outlook
Express has taken to crashing whenever I try to reply to a posting!

David Trickett



Thu, 16 Jan 2003 03:00:00 GMT  
 Sorting arrays - Excel97 VBA

Hi David,

For a large array of random values, the quickest sorting method is generally
considered to be the Quicksort.

A web search is bound to turn up a bunch of sites with the quicksort
algorithm, and probably some with VBA code you can adapt.

Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
Word FAQs at http://www.multilinker.com/wordfaq
Please post any follow-up in the newsgroup. I do not reply to Word questions
by email

Quote:

>I saw a post on this subject recently - but did not see any reply.

>I need to sort large 2 dimensional arrays, and although I do have a "brute
>force" routine it is only usable for fairly small arrays - it becomes
>impossibly slow for the 6000+ size I need to sort.

>Can any one help?

>Apologies in advance for not thanking any helpful respondents - Outlook
>Express has taken to crashing whenever I try to reply to a posting!

>David Trickett



Thu, 16 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. sort array in vba

2. Sorting arrays in VBA

3. Fastest way to sort an array in VBA?

4. Help with Excel97 and the SORT function

5. VBA problem using RDO on WinXP or 2000 with Excel97

6. Excel97 VBA to swap data

7. vba excel97/2000 - getsaveasfilename

8. VBA for Excel97 how to avoid commandbar personalization

9. VBA EXCEL97: How to get the range from a chart into a range object

10. Sendmessage API and Excel97-VBA Getselcount always returns 0

11. Simple Excel97-2000 VBA macro fails in Excel 2002

12. EXcel97 VBA Question

 

 
Powered by phpBB® Forum Software