dummy excel
05-22-2008, 10:47 PM
Hi All,
I have an inputbox for users to enter multiple store numbers. What I need to do is actually filter out the store numbers that was entered into the inputbox
my code so far is:
'Inputbox to filter out new stores
Newstore = InputBox("Enter New Store Numbers seperated by a space", "Enter New Stores", "119 120")
x = Split(Newstore, " ")
For i = 0 To UBound(x)
Range("A1").CurrentRegion.AutoFilter Field:=2, Criteria1:="<>" & Array(x) _
, Operator:=xlFilterValues
Next i
For some reason it doesnt like the "<>" & Array(x) Any ideas?
thanks
Sam
I have an inputbox for users to enter multiple store numbers. What I need to do is actually filter out the store numbers that was entered into the inputbox
my code so far is:
'Inputbox to filter out new stores
Newstore = InputBox("Enter New Store Numbers seperated by a space", "Enter New Stores", "119 120")
x = Split(Newstore, " ")
For i = 0 To UBound(x)
Range("A1").CurrentRegion.AutoFilter Field:=2, Criteria1:="<>" & Array(x) _
, Operator:=xlFilterValues
Next i
For some reason it doesnt like the "<>" & Array(x) Any ideas?
thanks
Sam