Hi all,
Is it possible to filter a table based on the column header? All I can find is based on Field position (i.e. column number 23), but my column is not in a set position. I've seen a method which calculates the column position but this involves selecting where the table will be, and this is not set either (sorry!! It's not my file...)
The table is called "ZVA", in Worksheet 'Data', Table Header is 'Div', Filter on 'NS'
Thanks in advance
P.s. This is my current method which doesn't always work...
OpenBook.Worksheets("Data").ListObjects("ZVA").Range.AutoFilter Field:=23, Criteria1 :=Array("NS"), Operator:=xlFilterValues
Is it possible to filter a table based on the column header? All I can find is based on Field position (i.e. column number 23), but my column is not in a set position. I've seen a method which calculates the column position but this involves selecting where the table will be, and this is not set either (sorry!! It's not my file...)
The table is called "ZVA", in Worksheet 'Data', Table Header is 'Div', Filter on 'NS'
Thanks in advance
P.s. This is my current method which doesn't always work...
OpenBook.Worksheets("Data").ListObjects("ZVA").Range.AutoFilter Field:=23, Criteria1 :=Array("NS"), Operator:=xlFilterValues