A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Programming
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Read into array and sort?



 
 
Thread Tools Display Modes
  #1  
Old May 31st 12, 08:43 AM posted to microsoft.public.excel.programming
Charlotte E.[_3_]
external usenet poster
 
Posts: 99
Default Read into array and sort?

Hi,


I have a number of informations, which is shared among spreadsheets on
the same computer.

For easy exchange I want to save these with SaveSetting, and then
re-obtain with Getsetting.

But I need to have the found data sorted after obtaining them, and was
wondering how to do this?

But how?
How to sort that array after reading the data?

Dim FD(100) As Variant
For Counter = 1 to 100
FD(Counter) = GetSetting(...)
Next

And now how to sort???


Thanks in advance...

CE
Ads
  #2  
Old May 31st 12, 11:05 AM posted to microsoft.public.excel.programming
Charlotte E.[_3_]
external usenet poster
 
Posts: 99
Default Read into array and sort?

Found a solution myself - sorry to borther you guys...

CE


Den 31.05.2012 09:43, Charlotte E. skrev:
> Hi,
>
>
> I have a number of informations, which is shared among spreadsheets on
> the same computer.
>
> For easy exchange I want to save these with SaveSetting, and then
> re-obtain with Getsetting.
>
> But I need to have the found data sorted after obtaining them, and was
> wondering how to do this?
>
> But how?
> How to sort that array after reading the data?
>
> Dim FD(100) As Variant
> For Counter = 1 to 100
> FD(Counter) = GetSetting(...)
> Next
>
> And now how to sort???
>
>
> Thanks in advance...
>
> CE

  #3  
Old May 31st 12, 11:06 AM posted to microsoft.public.excel.programming
GS[_2_]
external usenet poster
 
Posts: 2,247
Default Read into array and sort?

Charlotte E. explained :
> Hi,
>
>
> I have a number of informations, which is shared among spreadsheets on the
> same computer.
>
> For easy exchange I want to save these with SaveSetting, and then re-obtain
> with Getsetting.
>
> But I need to have the found data sorted after obtaining them, and was
> wondering how to do this?
>
> But how?
> How to sort that array after reading the data?
>
> Dim FD(100) As Variant
> For Counter = 1 to 100
> FD(Counter) = GetSetting(...)
> Next
>
> And now how to sort???
>
>
> Thanks in advance...
>
> CE


Why not dump the data into a temp wks and sort it there?

Also, instead of poluting the Registry with this data, why not 'Put' it
in a text file and 'Get' from there when you need it. You could sort
the data before 'Put'ting it into the file, or after 'Get'ting it from
the file. (Assumes using standard VB file I/O)

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build a String Sort Key, sort a 2 dimen array Mar20 Neal Zimm Excel Programming 1 March 21st 10 04:51 AM
Read csv to 2D array Dave Excel Programming 2 October 23rd 08 06:54 AM
ADO read to and array Deke Excel Programming 4 June 24th 08 07:31 PM
How to read offset cells from dynamic sort array formula? Jay Weiss Excel Discussion (Misc queries) 1 September 20th 07 07:11 PM
Read in Array Leigh Excel Programming 1 May 5th 04 09:18 AM


All times are GMT +1. The time now is 09:30 PM.


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