Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Slightly odd one.
I want to sort a sheet in order of, for example, "Grape, Apple, Orange, Banana, Melon". Of course at the moment it will just sort alphabetically. I can use the CustomList option BUT this spreadsheet needs to be shared with others and I'm still on Excel 2000... The sort it self will be called by a Macro: Sheets("Fruit").Select Rows("5:225").Select Selection.Sort Key1:=Range("X6"), Order1:=xlAscending, Header:=xlYes, OrderCustom:XXXX, MatchCase:=False, Orientation:=xlTopToBottom Where "Fruit" is the sheet, 5:225 are the rows to be sorted and X6 has the Melon, Grape etc. Of course using Custom Lists on my machine XXXX = 8. But on my colleagues they don't have the custom list and I would prefer not to add it if possible but to keep the sort order in the Macro. (The list I want to sort by is at: Sheets("Types").Range("B54:B60") Any ideas? I tried subbing it in and it didn't like it... Thanks and Happy New Year in advance. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sort Order? | Excel Discussion (Misc queries) | |||
Sort sheet tabs in alphabetical or numerical order | Excel Discussion (Misc queries) | |||
I would like to sort a work sheet based upon user input value,(dat | Excel Worksheet Functions | |||
I would like to sort a work sheet based upon user input value,(dat | Excel Worksheet Functions | |||
sort last name order | Excel Discussion (Misc queries) |