Option Explicit
Sub ShowAKTopTen()
SortAK
Worksheets("Results By Customer").Range("A1").CurrentRegion.AutoFilter Field:=37, Criteria1:="10", _
Operator:=xlTop10Items
End Sub
Sub ShowAKBottomTen()
SortAK
Worksheets("Results By Customer").Range("A1").CurrentRegion.AutoFilter Field:=37, Criteria1:="10", _
Operator:=xlBottom10Items
End Sub
Sub SortAK()
With Worksheets("Results By Customer")
.AutoFilterMode = False
.Range("A1").CurrentRegion.AutoFilter
.AutoFilter.Sort.SortFields.Clear
.AutoFilter.Sort.SortFields. _
Add Key:=Intersect(.UsedRange, .Range("AK:AK")), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortTextAsNumbers
With .AutoFilter.Sort
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
End With
End Sub