I want to use the named range as the criteria for the autofilter.
ActiveSheet.Range(Selection.End(xlToRight), Selection.End(xlDown)).Autofilter Field:=1, _
Criteria1:=a1, Operator:=xlFilterValues
I am trying to autofilter a report that has a variable number of lines month to month to display only certain employees data.
I have a named range ("ShowNames") that I want Autofilter to use as the filter values.
The report is emailed to me monthly so I run the macro from a second Excel...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.