G
Gio
In autofilter method (expression.AutoFilter(Field, Criteria1, Operator,
Criteria2, VisibleDropDown)), Criteria1 is Optional Variant. The
criteria (a string; for example, "101")
Problem I encountered:
Selection.AutoFilter Field:=2, Criteria1:=date_limit, Operator:=xlAnd
where date_limit is a string variable.
But I always get Run-time error "1004". Autofilter method of Range
class failed.
Question:
Can I use a string variable instead of a direct string value like
"101"?
What am I doing wrong?
Criteria2, VisibleDropDown)), Criteria1 is Optional Variant. The
criteria (a string; for example, "101")
Problem I encountered:
Selection.AutoFilter Field:=2, Criteria1:=date_limit, Operator:=xlAnd
where date_limit is a string variable.
But I always get Run-time error "1004". Autofilter method of Range
class failed.
Question:
Can I use a string variable instead of a direct string value like
"101"?
What am I doing wrong?