Autofilter with column formatted as date

前端 未结 10 1709
遥遥无期
遥遥无期 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

    you need to convert the format to the american format, like: ">" & Format([datecell], "mm/dd/yyyy") VBA does not understand another format.

提交回复
热议问题