Do you need SKU dimensioned as a string variable someplace else? If so, I
think I'd change it so that it's mySKU or something like that so that you
know it's the variable.
--
HTH,
Barb Reinhardt
"John Keith" wrote:
I have the following autofilter statement in my macro:
Selection.AutoFilter Field:=1, Criteria1:="=*SKU*", Operator:=xlAnd
The term "SKU" in this statment is Dimensioned as a string variable
but it is being used literally. That is the autofilter is selecting
lines that contain SKU.
How do I get this autofilter statement to understand SKU is a string
variable?
Thank you.
John Keith