In the column I'm trying to sort, occasionally there are cells that contain a zero. Is there a way to omit them from the sorting macro and place them at the end. the macro I have written is as follows:
Sub SortRankings()
With ActiveSheet.Sort
.SortFields.Clear
.SortFields.Add2 Key:=Range("AB7:AB26"), _
SortOn:=xlSortOnValues, _
Order:=xlAscending, _
DataOption:=xlSortNormal
.SetRange Range("W7:AB26")
.Header = xlNo
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End Sub
Ay help will be appreciated, Thanks!
Bookmarks