【发布时间】:2019-08-17 20:38:04
【问题描述】:
我已经尝试过了,但我的代码返回运行时错误 1004。Use autofilter on more than 2 criteria
逻辑运算符是否与此有关?
.AutoFilter Field:=1, Criteria1:=Array("<>*string1*", "<>*string2*", "<>*string3*"), Operator:=xlFilterValues
【问题讨论】:
-
.AutoFilter在使用通配符时最多限制为 2 个条件 - 我在这个问题 here 上写了一个解决这个问题的方法。您必须使用通配符标准构建一个数组,然后对其进行过滤。
标签: excel vba autofilter