+ Reply to Thread
Results 1 to 3 of 3

VBA Auto Sort Table When Change Made to Column A by values in Column T

  1. #1
    Registered User
    Join Date
    05-30-2018
    Location
    California, US
    MS-Off Ver
    2016
    Posts
    2

    VBA Auto Sort Table When Change Made to Column A by values in Column T

    Hello,

    I have a table where the values inputted in column A effect column T. I tried to write a Macro that sorts the table by column T when values in column A are changed. The macro doesn't work. How can I fix the macro?

    This is what I wrote.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 05-30-2018 at 10:43 PM. Reason: Added Code Tags

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: VBA Auto Sort Table When Change Made to Column A by values in Column T

    Hello peterambart,

    Sorting triggers the Change event. You need to prevent the macro from re-triggering the change event. Try this...

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    05-30-2018
    Location
    California, US
    MS-Off Ver
    2016
    Posts
    2

    Re: VBA Auto Sort Table When Change Made to Column A by values in Column T

    Thanks! That worked perfectly.

+ 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. Auto sort columns when a change is made
    By Nemery in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2017, 06:39 AM
  2. Replies: 5
    Last Post: 02-18-2016, 12:51 PM
  3. Replies: 9
    Last Post: 09-22-2015, 12:51 AM
  4. detecting duplicate values in a column (values are made of formula)
    By louiemangaring in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2015, 06:25 AM
  5. Incrementing Column's value +1 each time a change is made in another worksheet
    By SuGo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2013, 12:16 PM
  6. Replies: 0
    Last Post: 11-11-2011, 04:10 PM
  7. Replies: 0
    Last Post: 11-19-2009, 11:48 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