从今天的VBA起,我如何在1周内的所有日期过滤列?
从今天开始,我尝试在未来的1周/7天内使用相同的自动滤波器方法在下面显示的VBA中过滤所有日期。我感兴趣的列这次是字段:= 53
ActiveSheet.ListObjects("Table22").Range.AutoFilter Field:=129, Criteria1:= _
"UPCOMING"
我想知道这是否可以这样做,如果是这样?
I am trying to filter all dates in a column within 1 week/7 days in the future from today using the same autofilter method in VBA shown below. My column of interest this time is Field:=53
ActiveSheet.ListObjects("Table22").Range.AutoFilter Field:=129, Criteria1:= _
"UPCOMING"
I'm wondering if this is possible to do, and if so how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从今天到下周的今天:
您还可以使用特殊值将过滤器快速设置为“本周”或“下周”。请参阅此列表所有可能的特殊值。
From today till this day next week:
You can also use special values to quickly set the filter to "this week" or "next week". See this list all possible special values.
您可以将过滤器设置为这样:
为了过滤日期,有必要将它们转换为较长的值,否则过滤器无法正常工作。
You can set the filter like this:
To filter for dates it is necessary to convert them to a long value, otherwise the filter won't work.