+ Reply to Thread
Results 1 to 3 of 3

Separate One Array Into Multiple Small Arrays

  1. #1
    Registered User
    Join Date
    08-14-2007
    Posts
    10

    Exclamation Separate One Array Into Multiple Small Arrays

    Hello,

    I have one big array which contains about 8000 elements and that number will increase over time. What I want is to separate that array into many arrays of 500 elements each.

    How can I do that?

    Second, after I have done some calculations I will need to re-attach these arrays back into one array.

    Thanks in advance for your help.

    Cheers!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi

    One way would be as follows. Declare your 16 sub arrays, then use a Select Case Statement with 16 cases which identify the 501, 1001, 1501 .. etc.. records, and the array name that corresponds and then call a second procedure which populates the individual arrays. Something like the following
    Please Login or Register  to view this content.
    Then if you want to recreate the original array, do something similar but in reverse. If you get stuck with that just post back.

    HTH

  3. #3
    Registered User
    Join Date
    08-14-2007
    Posts
    10
    Thanks Richard!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1