I am using an AutoFilter with VBA in Excel that works for regular filters, but not a column formatted as date.
I can filter it manually. If I run my code, it filters
One solution is to set up correctly the format of the target column. If its formatted as "custom", even if it looks like a date, it won't work.
You are asking VBA to filter based on a date, therefore the format of the columns has to be a date too.