各位大大好,
小弟最近刚学用VBA,
遇到一个问题想要请问:
想要筛选出非ant开头、非balloon开头、不包含cat字眼的值,
但是遇到以下问题,求解~
=============================================================================
1.
ActiveSheet.Range("$B$5:$K$20000").AutoFilter Field:=2, Criteria1:=Array( _
"<>ant*", "<>balloon*", "<>*cat*"), Operator:=xlAnd
=> 只会筛选不包含cat字眼的值
=============================================================================
2.
ActiveSheet.Range("$B$5:$K$20000").AutoFilter Field:=2, Criteria1:=Array( _
"<>ant*", "<>balloon*", "*cat*"), Operator:=xlFilterValues
=> Class Range的AutoFilter 方法失败
=============================================================================
3.
ActiveSheet.Range("$B$5:$K$20000").AutoFilter Field:=2, Criteria1:= _
"<>ant*", Operator:=xlAnd, Criteria2:= "<>balloon*"
=> 只能筛选两个值
=============================================================================
谢谢