Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
With a cell selected in a bold header row, clcking the 'Sort Ascending'
button on the toolbar does exactly what I want. It would be great to be able to put something this into a macro Cells(2, 3). Sort, Order1:=xlAscending but if I record a particular situation I get ActiveCell.Offset(-1, 0).Range("A1:D75").Sort Key1:=ActiveCell.Offset(-1, 1). _ Range("A1"), Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, _ MatchCase:=False, Orientation:=xlTopToBottom, DataOption1:=xlSortNormal which is specific in that it is picking up the particular range which will change in the sheet I am wanting to sort. Any suggestions for a universal sorting macro - ok xlAscending and the other bits can be set. Francis Hookham |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting Values Without Sorting Formulas | Excel Discussion (Misc queries) | |||
Automatic sorting (giving max and min) based on custom sorting lis | Excel Worksheet Functions | |||
Sorting VLookup vs Sorting SumProduct | Excel Discussion (Misc queries) | |||
Sorting: Sorting by the First Character | Excel Discussion (Misc queries) | |||
Sorting ListBox results or transposing ListBox values to other cells for sorting | Excel Programming |