Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sorting help !!!!!!!!!!!!!!!!!
I keep getting a "Application-defined or object-defined error" with the code
below. I am tring to sort by columns B, C, D and I. Row(4) has the Header for the data range. I am using Excel 2007 but people with Excel2003 need to be able to use it too hence this sorting code. What am I doing wrong here? Help!!!!!!!!!! With ActiveWorkbook.Worksheets("Report 1").Range("B4:AX" & BOReport_lastRow) .Cells.Sort _ key1:=Columns(2), order1:=xlAscending, _ key2:=Columns(3), order2:=xlAscending, _ key3:=Columns(4), order3:=xlAscending, _ key4:=Columns(9), order4:=xlAscending, _ Header:=xlYes End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
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 |