I am having a bit of trouble using the sort method. I am attempting to
specify the Key1 and Key2 using the Cells() references. I get the 1004
error when I run it though. What is it that I am doing wrong?
cCol = ActiveCell.Column
rRow = ActiveCell.Row 'get row number for beginning of range
rEnd = Cells(Rows.Count, 3).End(xlUp).Row
Cells(1, 1).Select
Selection.End(xlToRight).Select
cCol = ActiveCell.Column
Range(Cells(rRow + 1, 1), Cells(rEnd, cCol)).Select
Selection.Sort Key1:=Range(Cells(1, cCol)), Order1:=xlAscending,
Key2:=Range( _
Cells(1, cCol - 1)), Order2:=xlAscending, Header:=xlNo,
OrderCustom:=1, _
MatchCase:=False, Orientation:=xlTopToBottom,
DataOption1:=xlSortNormal, _
DataOption2:=xlSortNormal