G
Guest
I am writing a macro that willl autofilter. I want to autofilter on a column
entitled "YEAR". I recorded the code below using the macro recorder
Selection.AutoFilter
Selection.AutoFilter Field:=15, Criteria1:="2005"
The problem is that the "YEAR" column is not always column 15. How can I
modify this code to look for the column entitled "YEAR"
Thanks
entitled "YEAR". I recorded the code below using the macro recorder
Selection.AutoFilter
Selection.AutoFilter Field:=15, Criteria1:="2005"
The problem is that the "YEAR" column is not always column 15. How can I
modify this code to look for the column entitled "YEAR"
Thanks