Hi, how do I add a second criteria to the following VBA please. The second criteria in the table (Buckinghamshire) as a header ID. Many thanks.
Sub Sortintable()
Dim ws As Worksheet
Set ws = ActiveSheet
With ws.ListObjects("Buckinghamshire").Sort
.SortFields.Clear
.SortFields.Add Key:=Range("Buckinghamshire[TOTAL]"), Order:=xlDescending
.Apply
End With
End Sub
Sub Sortintable()
Dim ws As Worksheet
Set ws = ActiveSheet
With ws.ListObjects("Buckinghamshire").Sort
.SortFields.Clear
.SortFields.Add Key:=Range("Buckinghamshire[TOTAL]"), Order:=xlDescending
.Apply
End With
End Sub