Hi Guys,
In the above code, Field 9 refers to the 9th column. In my table each column does have a header name. Column 9's header is "KIND". From time to time this KIND column may move around in the table. Is there a way to filter based on the column header name and not the columns placement?
I know the above does not work, but is there something similar that's available? Or maybe a way to dynamically index the columns?
Code:
Selection.AutoFilter Field:=9, Criteria1:="Clear"
In the above code, Field 9 refers to the 9th column. In my table each column does have a header name. Column 9's header is "KIND". From time to time this KIND column may move around in the table. Is there a way to filter based on the column header name and not the columns placement?
Code:
Selection.AutoFilter Field:="KIND", Criteria1:="Clear"