colmkav
2013-04-12 08:27:09 UTC
Hi,
how do I exclude items using VBA code? I thought I would get the code using record macro but it only gave code to include items.
eg
Range("A13").Select
ActiveSheet.Range("$A$13:$T$763").AutoFilter Field:=1, Criteria1:=Array( _
"10125014", "11394750", "2234200120", "2234600120", "52039100", "52080100", _
"54004912", "54004916"), Operator:=xlFilterValues
I would like to exclude 3 items
Colm
how do I exclude items using VBA code? I thought I would get the code using record macro but it only gave code to include items.
eg
Range("A13").Select
ActiveSheet.Range("$A$13:$T$763").AutoFilter Field:=1, Criteria1:=Array( _
"10125014", "11394750", "2234200120", "2234600120", "52039100", "52080100", _
"54004912", "54004916"), Operator:=xlFilterValues
I would like to exclude 3 items
Colm