Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I recorded a macro to sort rows:
Sub test2() ' ' test2 Macro ' ' Rows("2:5").Select Selection.Sort Key1:=Range("A2"), Order1:=xlAscending, Header:=xlGuess, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom End Sub If I insert rows between 2 and 5 the macro does not change to include the new rows. How do I change it so it is not a fixed selection? Chris..... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
modify macro to include more tabs | Excel Discussion (Misc queries) | |||
Macro to Number New Rows Inserted Into Table? | Excel Discussion (Misc queries) | |||
Can inserted rows automatically include existing worksheet formula | Excel Discussion (Misc queries) | |||
Modify A Formula To Include AND | Excel Worksheet Functions |