Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Sort an array

somerange.Sort does an excellent job of sorting data on a worksheet.
What is the equivalent function or method to sort the elements of an array?

(I am currently copying the array to un-used cells on a worksheet, sorting
the cells, and then copying the data back to the array. This is less code
than using a shell or buble sort, but it can't be optimal.)
--
Gary''s Student
  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Sort an array

I do not believe VB for applications has a built in function for that, you
would just have to write the code to sort it. Note, also some older version
of Excel do not support certain Text/Numerical Sorting on the worksheet, so
if you are sorting in a certain fashion it may not work on 2000 and earlier.
Ben

--
When you lose your mind, you free your life.


"Gary''s Student" wrote:

somerange.Sort does an excellent job of sorting data on a worksheet.
What is the equivalent function or method to sort the elements of an array?

(I am currently copying the array to un-used cells on a worksheet, sorting
the cells, and then copying the data back to the array. This is less code
than using a shell or buble sort, but it can't be optimal.)
--
Gary''s Student

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 an array Greg Excel Programming 6 February 6th 06 04:07 AM
Sort an array filo666 Excel Programming 1 January 13th 06 11:58 PM
Array... Sort of... Egon Excel Worksheet Functions 2 October 19th 05 05:47 PM
Sort an Array [email protected] Excel Programming 0 November 18th 04 01:20 AM
sort an array clui[_15_] Excel Programming 2 January 7th 04 11:49 AM


All times are GMT +1. The time now is 06:20 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"