How to leave Selection.Sort Key open....
Jeremy,
Sub Macro2()
ActiveCell.CurrentRegion.Sort _
Key1:=Intersect(ActiveCell.CurrentRegion, ActiveCell.EntireRow).Cells(1, 1), _
Order1:=xlDescending, Header:=xlGuess, OrderCustom:=1, _
MatchCase:=False, Orientation:=xlLeftToRight, _
DataOption1:=xlSortNormal
End Sub
HTH,
Bernie
MS Excel MVP
"J.W. Aldridge" wrote in message
...
Any way to change the sort key to be wherever cell it lands on in
column C?
Not limited to row number 73,74.....
Sub Macro1()
LastRowColA = Range("c65536").End(xlUp).Row
Range(Selection, Selection.End(xlToRight)).Select
Selection.Sort Key1:="R74C3", Order1:=xlDescending,
Type:=xlSortValues, _
OrderCustom:=1, Orientation:=xlLeftToRight
End Sub
|