ndendrinos
Well-known Member
- Joined
- Jan 17, 2003
- Messages
- 1,694
is there a way to simplify this code?
what it does is sorts within range pushing rows with empty values in A at the bottom and then clears them
what it does is sorts within range pushing rows with empty values in A at the bottom and then clears them
Code:
Application.EnableEvents = False
[A17:F35].Select
With Selection
.Sort Key1:=.Cells(2, 1), Order1:=xlAscending, _
Header:=xlYes, OrderCustom:=1, MatchCase:=False, _
Orientation:=xlTopToBottom
[A17:A35].Select
With Selection
.SpecialCells(xlCellTypeBlanks).EntireRow.ClearContents
End With
End With
Application.EnableEvents = True