Results 1 to 2 of 2

Problem re-assigning array after a sort

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Problem re-assigning array after a sort

    Hi,

    I have an array where i read in the file names from a directory.

    Note: When trying to run this macro create files with file names such as this
    AA1_AA1_AA1_DET_owner.xls
    AA2_AA2_AA2_DET_owner.xls
    etc


    The array used to store the file names has the format like this
    file_array(1,1)
    file_array(1,2)
    file_array(1,3)
    file_array(1,4)

    file_array(2,1)
    file_array(2,2)
    file_array(2,3)
    file_array(2,4)


    I dont know if you call this a multi-dimensional array......not sure.

    Anyway, i want to sort this array by the file_array(2, values.

    So what i do is transpose the array , then paste into excel sheet, sort and then re-sort again and try to put back into arrray.

    The re-transpose and trying to put back into the array is where i am having issues.

    Its not doing it correctly.

    Can someone help me? I have tried various things to no avail.
    Attached Files Attached Files
    Last edited by welchs101; 04-21-2012 at 09:00 AM.

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