There is a report that I run on a daily basis that uses the same autofilter criteria each time: Any column named "Unweighted" has to be greater than or equal 30, and any column named "Index" has to be greater than or equal to 100. I'm trying to figure out how to set those criteria instantly with a press of a button.
Unfortunately, this report sometimes has more data or less data, so my subroutine needs to be dynamic.
I know that I could create variables and manually step through until I reach a blank, but I'm wondering if there is a better way to do this? I'm just brainstorming here, but is it possible to tell VBA to identify all of those "Unweighted"/"Index" columns by name? i.e. "If an autofilter column is called "Unweighted", apply a >=30 filter", etc.
This attachment should clarify:
Example Data - Autofilter.xlsx
Bookmarks