Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I have a range of cells that starts from column A to Q over mutiple rows. I tried a macro to sort the range but am constantly failing. I recorded the manual action of highlighting the required rows, choosing the sort columns (3) and then sorting (including header) but this is failing. What I added in the macro is code to choose the last row (so that when new rows are added the sort will include them dynamically. Does anyone have a solution for this. I want to have a range with headers and sort on 3 rows. Column A is sometimes emtpy, but I am only sorting on EFG (which are always populated). Thanks and regards Cedric |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Maybe you can find something in the sample code at Debra Dalgleish's site:
http://contextures.com/xlSort02.html cmm wrote: Hi, I have a range of cells that starts from column A to Q over mutiple rows. I tried a macro to sort the range but am constantly failing. I recorded the manual action of highlighting the required rows, choosing the sort columns (3) and then sorting (including header) but this is failing. What I added in the macro is code to choose the last row (so that when new rows are added the sort will include them dynamically. Does anyone have a solution for this. I want to have a range with headers and sort on 3 rows. Column A is sometimes emtpy, but I am only sorting on EFG (which are always populated). Thanks and regards Cedric -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you Identify text as a named range in excel | Excel Discussion (Misc queries) | |||
VLookup Error in Part of a Named Range | Excel Worksheet Functions | |||
UDF is updateing cells on another sheet with count from current sheet. | Excel Discussion (Misc queries) | |||
FORMULA at Source range (in Data-validation-List) gives wrong re | Excel Worksheet Functions | |||
Sorting a range of cells that get value from other cells | Excel Discussion (Misc queries) |