![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
I would like to create a macro to sort columns A:F in a range of A3:F400 in ascending order.( "A" in ascending order then "B"in ascending order then "C" etc.) When I try the Excel sort it only does 3 columns. ( when record the sort as a Macro and try to add more columns it doesn't work). At this point I either need to by hand reselect the range to exclude the already sorted cells or figure out a macro to run. I would appreciate any help as I am sure you have seen this problem before. Also, I have found some great stuff in your site, but searching through the maze of questions for this answer has proved very frustrating. Thanks again.
[ This Message was edited by: Earbrows on 2002-04-19 10:39 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Guderup, Denmark
Posts: 287
|
Hi
you should let your macro sort on D, E and F in first run. In second run sort on A, B and C. This way the whole range is sorted correct. regards Tommy |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
Not exactly what I was looking for, but a very nice and simple solution anyway.
Thank you very much. |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Ontario
Posts: 52
|
do you mean by A3:F400, that you wnat to sort so A1>a400, and A400>b1 and B1>b400 etc, or do you just want each column sorted within itself?
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Ontario
Posts: 52
|
sorry for repeat posting ..
suffering from Friday Fingers [ This Message was edited by: Big Blue on 2002-04-19 11:38 ] |
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Posts: 3
|
The information in each Column from A to F needs to be sorted aplhabetically and bring all the data on that row with it. The columns beyond the sorted cells has the data I need. Thank you.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|