Home |
Search |
Today's Posts |
#7
![]() |
|||
|
|||
![]()
You could also use a worksheet function:
Private Sub Worksheet_Change(ByVal Target As Excel.Range) Range("A1:F31").Select 'Change the range to suit your needs Range("F1").Activate Selection.Sort Key1:=Range("F2"), Order1:=xlAscending, Key2:=Range("A2") _ , Order2:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:= _ False, Orientation:=xlTopToBottom Range("F2").Select End Sub 'Change Order2:=xlAscending to Order2:=xlDescending if necessary "Robert" wrote in message ... Hello, I have a column of numbers (column C) with some blank spaces at the bottom leaving room to add additional numbers. I want the numbers to re-sort automatically whenever I change, add or delete a number. I saw some posts on using the LARGE and RANK functions, but was not able to see how to apply them in my example. Is there a simple way? thanks in advance for any tips... Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sorting more than 3 keys | Excel Discussion (Misc queries) | |||
Sort Ascending button - Excel 2003 | Excel Discussion (Misc queries) | |||
How do I sort a column of data and have each data row sort accordi | Excel Discussion (Misc queries) | |||
"-" ignored in sort | Excel Discussion (Misc queries) | |||
Automatic Page Sort | Excel Worksheet Functions |