+ Reply to Thread
Results 1 to 2 of 2

sort data by column A then by B .. so on

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    sort data by column A then by B .. so on

    Hi,

    I have a csv file that has huge data and i have to sort the data by Column A and then by Column B and then by C and then by D and by E.

    using sort on each colum individually is not serving the purpose.

    i could achinve till three columns by searing on the web regarding this. But the moment i add forth column it errors out.

    Below is the function. i am also attaching the file to demonstrate the way this function sorts.

    --------------------------------------
    Please Login or Register  to view this content.
    ---------------------------
    (copy it to text file and rename to filename.vbs and run)



    if run the same function with another column for sorting it errors : Sort method for range class falied. here is the modified function:
    ----------------------------
    Please Login or Register  to view this content.
    --------------------------




    has anyone worked with excel object extensively.. has anybody tried this... please try and help ....
    Please..

    Thanks in advance,
    ~neethu
    Attached Files Attached Files
    Last edited by vijaychandrika; 08-04-2009 at 02:16 AM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: sort data by column A then by B .. so on

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

+ 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