Code:
Sub customer()
Range(A2:M84).Select
ActiveWorkbook.Worksheets(sum).Sort.SortFields.Clear
ActiveWorkbook.Worksheets(sum).Sort.SortFields.Add Key=Range(C3:C84), _
SortOn=xlSortOnValues, Order=xlAscending, DataOption=xlSortNormal
With ActiveWorkbook.Worksheets(sum).Sort
.SetRange Range(A2:M83)
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Selection.Subtotal GroupBy=3, Function=xlSum, TotalList=Array(10), _
Replace=True, PageBreaks=False, SummaryBelowData=True
End Sub