我尝试了这两种方法,但它不起作用。请建议是否有任何简单的代码可以自动过滤2个以上的值
(1)
ActiveSheet.Range("A4:U2000").AutoFilter Field:=6, Criteria1:=Array("=*" & logic1 & "*", "=*" & logic2 & "*", "=*" & logic3 & "*"), Operator:=xlFilterValues
(2)
ActiveSheet.Range("A4:U2000").AutoFilter Field:=6, Criteria1:="=*" & logic1 & "*", Operator:=xlOr, Criteria2:="=*" & logic2 & "*", Operator:=xlOr, Criteria3:="=*" & logic3 & "*", Operator:=xlOr, Criteria4:="=*" & logic4 & "*"