+ Reply to Thread
Results 1 to 7 of 7

Adding Conditions to Auto-Sort Macros

  1. #1
    Registered User
    Join Date
    04-02-2015
    Location
    Miami, Florida
    MS-Off Ver
    2019
    Posts
    38

    Adding Conditions to Auto-Sort Macros

    Hello,

    I currently have macros that will auto-sort dates in C8:C208. Is it possible to modify the code so that it does not auto-sort until data is also entered in the adjacent D and E cells? So, for example, I would enter the date in C8, enter data in D8, enter data in E8, and then it would auto-sort column C by date.

    Please Login or Register  to view this content.
    Thank you
    Last edited by NoMotion; 01-26-2020 at 01:27 PM. Reason: Added code tags

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Adding Conditions to Auto-Sort Macros

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Registered User
    Join Date
    04-02-2015
    Location
    Miami, Florida
    MS-Off Ver
    2019
    Posts
    38

    Re: Adding Conditions to Auto-Sort Macros

    Quote Originally Posted by Pepe Le Mokko View Post
    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Apologies, I haven't posted in years. Thank you

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Adding Conditions to Auto-Sort Macros

    Just make this change
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-02-2015
    Location
    Miami, Florida
    MS-Off Ver
    2019
    Posts
    38

    Re: Adding Conditions to Auto-Sort Macros

    Quote Originally Posted by Fluff13 View Post
    Just make this change
    Please Login or Register  to view this content.
    Perfect, thank you very much!

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,079

    Re: Adding Conditions to Auto-Sort Macros

    You're welcome & thanks for the feedback

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Adding Conditions to Auto-Sort Macros

    Apologies, I haven't posted in years. Thank you
    I saw that. that is why I did not give a "warning"

+ 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. [SOLVED] Creating a Macros or VBA to auto sort data by three columns
    By SMITH.CRYSTAL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2015, 01:04 PM
  2. Auto Data Sort (Programming without VB , Macros or Pivots
    By jaysknots in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 10-22-2014, 03:18 PM
  3. Creating an auto sort without enabling Macros
    By lmonroe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2014, 03:04 PM
  4. Adding Auto Sort to my macro
    By chopapeih in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2014, 03:56 PM
  5. [SOLVED] Auto-sort macros for newly added fields.
    By jpoppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-14-2013, 08:14 AM
  6. Auto sort after adding new figures
    By plumbob in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 03:18 AM
  7. Adding conditions to my existing macros
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2012, 06:20 AM

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