+ Reply to Thread
Results 1 to 5 of 5

Macro for sorting range when range is continuously changing

  1. #1
    Registered User
    Join Date
    04-02-2008
    Posts
    59

    Macro for sorting range when range is continuously changing

    I am looking for a macro to attach to a button for auto sorting a column, and then expanding that to the other cells around it (basically the same as the A-Z auto sort button). The catch is that there will be rows continuously added to this sheet, so the specified range will always be changing. The starting cell (L5) will always be the same, but the bottom cell will be always changing.

    I am using a formula for another macro that I think might work for this, but I am unsure how to connect the dots. The other formula finds the last populated cell in a column.

    [Range("L500").End(xlUp).select]

    I have attached the workbook for reference, it will be module1. Thanks in advance for your help.....THANKS!
    Attached Files Attached Files
    Last edited by lukasj13; 09-24-2010 at 07:21 PM.

  2. #2
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Re: Macro for sorting range when range is continuously changing

    Hello

    This should work.......


    Please Login or Register  to view this content.
    Cheers

    Jim

  3. #3
    Registered User
    Join Date
    04-02-2008
    Posts
    59

    Re: Macro for sorting range when range is continuously changing

    This is why I love this site. People like you!!!! Thank you, you have solved my problem. Don't know how to thank you!, but THANKS!!!!!!!!!

  4. #4
    Registered User
    Join Date
    01-24-2014
    Location
    Houston, TX
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro for sorting range when range is continuously changing

    Added in error.
    Last edited by raeganhill; 01-24-2014 at 10:51 AM.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro for sorting range when range is continuously changing

    raeganhill,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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