Autofilter with column formatted as date

前端 未结 10 1706
遥遥无期
遥遥无期 2020-11-27 21:58

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

10条回答
  •  醉梦人生
    2020-11-27 22:14

    Match your "dd-mm-yyy" to the format of the column, so if you have "16-Aug-16" as your source data formatting then make the filter as "dd-mmm-yy"

提交回复
热议问题