Reputation: 2088
I'm trying to make use of Advanced Filter instead of AutoFilter as I'm told it performs much better in VBA. However, I can't seem to figure out a way to filter data to only show dates greater than today since that is dynamic and relies on a formula.
I've tried making my criteria range >today()
and ">"&B2
where B2
is today()
Any idea what I'm missing?
Advanced Filter:
Data before:
Desired Result:
Upvotes: 0
Views: 5161
Reputation: 152450
When using a formula in Advanced filter the formula itself is the filter. Remove the title from the criteria and point the formula at the first cell in the column data to be filtered. In this case:
=A2>TODAY()
So:
The Criteria must include the blank cell above:
And we get:
Upvotes: 1
Reputation: 1090
Your Criteria value should be:
Set Today as Date
...
Today = Date
if you are referring to today's date. Today is an Excel Function, not vba function.
Sorry, but I can not make comments still. Hope it helps.
Upvotes: 0