+ Reply to Thread
Results 1 to 3 of 3

Auto-Sort

  1. #1
    Registered User
    Join Date
    01-28-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    13

    Auto-Sort

    I'm looking for VBA code that will automatically sort (descending) my spreadsheet (with the exception of rows 1 and 2) on the contents of Column A whenever any value is changed in any cell in Column A. (It doesn't matter to me whether or not the column will sort when A1 or A2 are changed, as long as those rows are not moved in the sort).

    Attached is an example. The actual sheet will look very similar with hundreds more entries. The first sheet is pre sort, the next is what I want the sheet to look like after one sort and the third after a second sort. You can see that I'm changing an entry in column A from 1 to 0, and want that entry to go to the bottom of the list. Obviously I want all the formulas to remain the same.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Auto-Sort

    Does this work for you?
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    01-28-2011
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Auto-Sort

    Thanks!

    I have run into another problem though . . .

    I realize that I actually don't want to sort based on a column that I will actually be inputting.

    Column 1 is going to come from another sheet (labeled Master in the example attached). But I want to sort when it is changed in the destination sheet (position 1).

    I appreciate any help you have to offer!
    Attached Files Attached Files

+ 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