+ Reply to Thread
Results 1 to 3 of 3

Sort the Table Automatically

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Sort the Table Automatically

    How To Make the Table Sort Automatically Without using Sort Button?.
    For Example, I Changed one of the Cell's Value. Then The Table Sort itself.

  2. #2
    Registered User
    Join Date
    10-08-2012
    Location
    hyderbad
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Sort the Table Automatically

    Hi Hanif,

    The only way that this can be done is by using a macro that is triggered whenever something new is entered in the worksheet. You can, for instance, add a macro to the code for a worksheet that is triggered when something in the worksheet changes. (You can view the code window by right-clicking the worksheet tab and choosing View Code from the resulting Context menu.) The following is an example of one such simple macro:

    Please Login or Register  to view this content.
    The macro assumes that you want to sort on the data in column A and that there is a header in cell A1. If the names are in a different column, just change the cell A2 reference to a different column, such as B2, C2, etc.

    Of course, sorting anytime that any change is made can be bothersome. You might want to limit when the sorting is done so that it only occurs when changes are made to a specific portion of your data. The following version of the macro sorts the data only when a change is made in column A.

    Please Login or Register  to view this content.
    There are some drawbacks to using a macro to automatically sort your data. First, since you are using a macro to sort, the operation is essentially "final." In other words, after the sorting you can't use Ctrl+Z to undo the operation.

    MasS

  3. #3
    Registered User
    Join Date
    04-22-2014
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Sort the Table Automatically

    Thank you so much mail_subrahmanyam :D. I really need this because i want to sort my table automatically without using sort button :D

+ 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] automatically sort a table after changing a cell
    By Aaron in forum Excel General
    Replies: 1
    Last Post: 07-26-2006, 01:30 PM
  2. how do i automatically sort data in a pivot table
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  3. how do i automatically sort data in a pivot table
    By Debra Dalgleish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. how do i automatically sort data in a pivot table
    By Esche in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  5. how do i automatically sort data in a pivot table
    By Esche in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-11-2005, 08:05 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