Sub A1_SortbyAcctandDeleteBlanks()
Range("A1").Select
Selection.Sort Key1:=Range("C2"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("C1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).EntireRow.Select
ActiveCell.Offset(1, 0).Range("A1").Activate
Selection.Clear
Range("A1").Select
End Sub
|