Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
i need to sort my worksheet in my VBA code i used the code below but it doesn't work: RCnt = Cells(Rows.Count, 2).End(xlUp).Row Range("A1:Q" & Trim(Str(RCnt + 2))).Sort Key1:=Range("A2"), Order1:=xlAscending, Key2:=Range _ ("B2"), Order2:=xlAscending, Key3:=Range("E2"), Order3:=xlAscending, _ Header:=xlYes, OrderCustom:=1, MatchCase:=False, Orientation:= _ xlTopToBottom, DataOption1:=xlSortNormal, DataOption2:=xlSortNormal, _ DataOption3:=xlSortNormal any help would be appreciated. Thanks, -- Farhad Hodjat |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting a protected sheet | Excel Worksheet Functions | |||
Protect Sheet but allow sorting | Excel Worksheet Functions | |||
SORTING TO ANOTHER SHEET | Excel Discussion (Misc queries) | |||
Sorting rows to a another sheet | Excel Worksheet Functions | |||
Sorting a sheet | Excel Worksheet Functions |