Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all, I am trying to sort data by Column A first, and then Column B. Both
columns are custom lists. I tried this code but it will only read my custom sort for Column A. Column B is sorted alphabetically ascending, not sorted by my custom list. Any ideas? (the header will be "yes" later...that's why it's there...) Private Sub Workbook_Open() Worksheets("Sheet1").Select Cells.Select Selection.Sort Key1:=Range("A1"), OrderCustom:=7, header:=xlNo, _ Key2:=Range("B1"), OrderCustom:=6, header:=xlNo Sheet1.Activate Range("A1").Select Range("A1").Activate End Sub Thanks! Cheryl -- carusso |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
custom lists and custom formulas? | Excel Discussion (Misc queries) | |||
Custom lists (XP) | Excel Discussion (Misc queries) | |||
Saving Sort Criteria (or Sort Lists) | Excel Worksheet Functions | |||
Custom Lists | Excel Discussion (Misc queries) | |||
Excel sort by Fill Color by custom list sort | Excel Discussion (Misc queries) |