Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
autofilter with macro | Excel Discussion (Misc queries) | |||
Macro, AutoFilter... | Excel Discussion (Misc queries) | |||
Autofilter Macro? | Excel Discussion (Misc queries) | |||
autofilter macro | Excel Discussion (Misc queries) | |||
Keep autofilter after macro is run | Excel Worksheet Functions |