Re: Excel List Sorting
- From: Gord Dibben <gorddibbATshawDOTca>
- Date: Sat, 05 Aug 2006 13:32:39 -0700
Ben
You have to use event code in the *** module.
Right-click on your *** tab and "View Code"
Copy/paste this code into that module.
Private Sub Worksheet_Change(ByVal Target As Range)
Columns(1).Sort Key1:=Range("A1"), Order1:=xlAscending, _
Header:=xlGuess, OrderCustom:=1, _
MatchCase:=False, Orientation:=xlTopToBottom
End Sub
As you enter data in column A it will sort.
Gord Dibben MS Excel MVP
On 5 Aug 2006 13:10:54 -0700, ben.lopresti@xxxxxxxxx wrote:
I am trying to keep my records in Excel, and I want to keep the list
sorted by "Last Date Contacted". This column is constantly being
updated, depending on when the person was contacted last.
Right now, I have to sort the list after each change to a cell in the
"Last Date Contacted" column. Is there any way to make the list
automatically sort itself in real-time, based on any changes that I
make to this column? (when I change the date, the row would
automatically jump to its proper place, based on the new date)
Thanks a lot.
-Ben LoPresti
Gord Dibben MS Excel MVP
.
- Follow-Ups:
- Re: Excel List Sorting
- From: ben . lopresti
- Re: Excel List Sorting
- From: ben . lopresti
- Re: Excel List Sorting
- References:
- Excel List Sorting
- From: ben . lopresti
- Excel List Sorting
- Prev by Date: RE: Changing Chart Parameters
- Next by Date: Re: Excel List Sorting
- Previous by thread: Excel List Sorting
- Next by thread: Re: Excel List Sorting
- Index(es):