When creating a table, Excel turns every column in the table into a sortable column via a drop down arrow next to the column name. Is it possible to turn off this sorting ability for some of the columns in a table?
Sub Davidns()
Dim Ary As Variant
Dim i As Long
Ary = Array(1, 3, 5, 7)
With Sheet1.ListObjects("Table2")
For i = 0 To UBound(Ary)
.HeaderRowRange.AutoFilter Ary(i), , , , False
Next i
End With
End Sub