Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default sort function vba

I want to create a vba function with as input an unsorted array and as
output a sorted array.

Any idea,

Thanks, Johan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default sort function vba

Roedd <<Johan de Kok wedi ysgrifennu:

I want to create a vba function with as input an unsorted array and as
output a sorted array.

Any idea,

Thanks, Johan



This is the most comprehensive resource I know of when it comes to sorting
in VB

http://www.devx.com/vb2themax/Article/19900

--
Rob

http://www.asta51.dsl.pipex.com/webcam/

Original portions of this message are copyright
Robert Bruce and intended for distribution only via NNTP.
Dissemination via third party Web forums with the
exception of Google Groups and Microsoft Communities
is strictly prohibited and may result in legal action.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sort function vba

Here is another source:

http://www.visualbasicforum.com/t78889.html

--
Regards,
Tom Ogilvy

"Johan de Kok" wrote in message
...
I want to create a vba function with as input an unsorted array and as
output a sorted array.

Any idea,

Thanks, Johan




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default sort function vba


"Johan de Kok" wrote in message
...
I want to create a vba function with as input an unsorted array and as
output a sorted array.

Any idea,

Thanks, Johan



Both are very interesting articles - but raises the question: what is
Excel's Sort Function and/or how does it compare to writing your own sort
routine?; esp when have numerous columns in the sheet.
???


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default sort function vba

I haven't tested, but for data that is already in the worksheet, I would
expect sort to be very efficient. But you can see that Howard Kaikow, with
a similar expectation, had a different experience when testing against a
sort routine in the old Word macro language (not Excel).

http://www.standards.com/

Still, sorting is a bread and butter capability built into Excel.

--
Regards,
Tom Ogilvy

"Jef Gorbach" wrote in message
...

"Johan de Kok" wrote in message
...
I want to create a vba function with as input an unsorted array and as
output a sorted array.

Any idea,

Thanks, Johan



Both are very interesting articles - but raises the question: what is
Excel's Sort Function and/or how does it compare to writing your own sort
routine?; esp when have numerous columns in the sheet.
???




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
sort function for dates does not sort properly in Office 2007 Exc. Rosalie Excel Worksheet Functions 1 November 22nd 07 10:25 PM
Sort : how can I use a variable in a VB sort function? El Bee Excel Worksheet Functions 3 February 16th 06 09:34 PM
sort function to sort for bell curve Kuby Excel Discussion (Misc queries) 4 December 16th 05 06:51 PM
Complicated sort function with sort and sum Matz Excel Worksheet Functions 3 August 29th 05 07:50 AM
Excel Sort function should not sort the cell formatting! Lisa D.N.1 Excel Worksheet Functions 1 December 28th 04 08:37 PM


All times are GMT +1. The time now is 04:27 PM.

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"