+ Reply to Thread
Results 1 to 7 of 7

Help with auto sort data

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    2,783 Tenustr
    MS-Off Ver
    Excel 2007
    Posts
    7

    Help with auto sort data

    Hi guys,

    I need help. I want to auto sort my data but despite adding in Macro it still does not auto sort it for me.
    The thing is I want to auto sort the data in sheet 2 in ascending order according to the "lowest rate #", whenever I change the rates in sheet 1.

    Below is my attached sample file.

    I've tried using this macro in sheet 2 but it doesn't seem to auto sort the data for me whenever I change the rates in sheet 1.

    Please Login or Register  to view this content.
    Is there some error in the macro? Help is much appreciated. Thanks!
    Attached Files Attached Files
    Last edited by glamint; 06-13-2012 at 11:45 PM.

  2. #2
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Help with auto sort data

    Try this in Sheet1's code module

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    2,783 Tenustr
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Help with auto sort data

    Quote Originally Posted by Thalassa View Post
    Try this in Sheet1's code module

    Please Login or Register  to view this content.
    Thanks Thalassa! I'm able to complete my work now. Thanks alot!

  4. #4
    Registered User
    Join Date
    06-12-2012
    Location
    2,783 Tenustr
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Help with auto sort data

    Hi,

    Now that I'm able to do on the sample file, I started with my work but there seems to be a problem an error.

    Run-time error '9':
    Subscript out of range

    What does that means? What should I do?

  5. #5
    Registered User
    Join Date
    06-12-2012
    Location
    2,783 Tenustr
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Help with auto sort data

    Hi,

    Now that I'm able to do on the sample file, I started with my work file using the macro given but there seems to be an error.

    Run-time error '9':
    Subscript out of range

    What does that means? What should I do? I've attached my work file below.
    Attached Files Attached Files
    Last edited by glamint; 06-13-2012 at 11:49 PM.

  6. #6
    Forum Contributor
    Join Date
    06-07-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    189

    Re: Help with auto sort data

    You need to use the actual name of the sheet:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-12-2012
    Location
    2,783 Tenustr
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Help with auto sort data

    Quote Originally Posted by Thalassa View Post
    You need to use the actual name of the sheet:

    Please Login or Register  to view this content.
    I'm able to do it now. Thanks for your help!

+ 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