I'm trying to get my code to filter out multiple values so I can see any employee that may remain on the list. It works wonderfully when I enter one name (i.e. "Smith"), as it does take the name out of my list. However, when I try to enter another name (such as "White"), "Smith" comes back on the list while "White" is filtered out. I'd like BOTH names to be filtered out, as well as any other names I may need out.
Sub Driver()
Dim Driver As String
uiDriver = Application.InputBox("Filter out Driver", Type:=2)
If uiDriver = "False" Then Exit Sub: Rem Cancel pressed
Range("A1").Select
Selection.AutoFilter
Selection.AutoFilter field:=2, Criteria1:="<>*" & uiDriver & "*", Operator:=xlAnd
End Sub
Any tips would be greatly appreciated, thanks!