Hello Mr Excel Message board! glad to meet you.
I am trying to filter information that I do not want to see (rather than filter FOR information).
I'm trying to do this by using an array, here is the example
Notice the "Criteria1:=Array(List)" section. Is there syntax to filter for what does NOT equal to the array? Just as an example (this doesn't work) something like this: "Criteria1:=<>Array(List)"
I am trying to filter information that I do not want to see (rather than filter FOR information).
I'm trying to do this by using an array, here is the example
Code:
Sub FilterOutFromArray()
Dim List() As Variant
List = Array("example1", "example2", _
"example3", "example4", _
"example5", "example6")
With ActiveSheet.Range("A:K")
.AutoFilter
.AutoFilter Field:=1, Criteria1:=Array(List), Operator:=xlFilterValues
End With
End Sub
Notice the "Criteria1:=Array(List)" section. Is there syntax to filter for what does NOT equal to the array? Just as an example (this doesn't work) something like this: "Criteria1:=<>Array(List)"