+ Reply to Thread
Results 1 to 6 of 6

Is an automatic Sorting Macro possible?

  1. #1
    Registered User
    Join Date
    08-24-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2007
    Posts
    78

    Is an automatic Sorting Macro possible?

    Already have a Sorting Macro button on "Current Job List" sheet. Just wondering if it's possible to have it work automatically without clicking the button when a new row is transferred over from the other two sheets "3 Digit" & "4 Digit" worksheets?

    See Example Below:
    Attached Files Attached Files

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Is an automatic Sorting Macro possible?

    Why not just have the macro you are using to move those rows, call the sort macro as a final step?


    Something like:
    Please Login or Register  to view this content.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    08-24-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Is an automatic Sorting Macro possible?

    Quote Originally Posted by GeneralDisarray View Post
    Why not just have the macro you are using to move those rows, call the sort macro as a final step?


    Something like:
    Please Login or Register  to view this content.

    Not sure where to put this to make it work automatically?

  4. #4
    Registered User
    Join Date
    08-24-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Is an automatic Sorting Macro possible?

    Anybody else out there that can help me with this?

  5. #5
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Is an automatic Sorting Macro possible?

    right click on tab (4 digit and 3 digit)
    view code
    at the end of the Worksheet_SelectionChange macro
    you can
    call sort_macro

    then record yourself a sort macro to go to the sheet and sort it, and call it sort_macro.
    Last edited by scottiex; 10-01-2014 at 02:17 PM.

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Is an automatic Sorting Macro possible?

    Hi Elmer

    Change your sortie Code to this
    Please Login or Register  to view this content.
    Add this line of Code to each Worksheet Selection Change Event...add the line just before End Sub
    Please Login or Register  to view this content.
    Get rid of the Sort Button.

    If you need the whole File let me know.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automatic sorting
    By chris.slater in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2013, 08:42 AM
  2. [SOLVED] Need help on automatic sorting
    By akalien in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2012, 07:44 AM
  3. Automatic Sorting macro codes for Excel 2011
    By CMoore12 in forum Excel General
    Replies: 1
    Last Post: 07-18-2012, 03:46 AM
  4. Automatic Macro Sorting of cells
    By liampog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-24-2010, 03:20 PM
  5. Automatic sorting
    By greg7468 in forum Excel General
    Replies: 6
    Last Post: 09-20-2006, 12:43 PM

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