Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
hi,
I'm using the following code to sort a selected range based on the columns, C,B and F.I don't know why the range is sorted only based on Column C? Sub Rectangle1954_Click() Dim myRng As Range Set myRng = Selection.Areas(1) With myRng .Sort key1:=Columns("C"), order1:=xlAscending, header:=xlNo, MatchCase:=False, Orientation:=xlTopToBottom, key2:=Columns("B"), order1:=xlAscending, header:=xlNo, MatchCase:=False, Orientation:=xlTopToBottom, key3:=Columns("F"), order1:=xlAscending, header:=xlNo, MatchCase:=False, Orientation:=xlTopToBottom End With End Sub any help? thanx |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting by range | New Users to Excel | |||
Sorting a Range | Excel Discussion (Misc queries) | |||
sorting range changes sum??? (excel) | Excel Worksheet Functions | |||
Sorting By a range of rows | Excel Discussion (Misc queries) | |||
sorting a range | Excel Discussion (Misc queries) |