I was fortunate to get the following code from a board regular, and it solved my dilema at the time, but now I would like to add multiple criteria to the code, and I can't seem to get it to work. I'm sure it is in the structure I am using, so can anyone tell me how to structure this code if I want to add additional criteria, with Or as the operator? I want to filter out all but a list of names I will be entering as the criteria, so I will be using "<> (names)" in my code. Thanks!
Code:
[COLOR=black][FONT=Courier New]Sub delrow()<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>[/FONT][/COLOR]
[COLOR=black][FONT=Courier New] Dim num As Double<o:p></o:p>[/FONT][/COLOR]
[COLOR=black][FONT=Courier New] num = InputBox("What is the Criteria Number", "Number")<o:p></o:p>[/FONT][/COLOR]
[COLOR=black][FONT=Courier New] <o:p></o:p>[/FONT][/COLOR]
[COLOR=black][FONT=Courier New] With Range("E2", Range("E" & Rows.Count).End(xlUp))<o:p></o:p>[/FONT][/COLOR]
[COLOR=black][FONT=Courier New] .AutoFilter Field:=1, Criteria1:="<" & num, Operator:=xlAnd<o:p></o:p>[/FONT][/COLOR]
[COLOR=black][FONT=Courier New] .SpecialCells(xlCellTypeVisible).EntireRow.Delete (xlUp)<o:p></o:p>[/FONT][/COLOR]
[COLOR=black][FONT=Courier New] End With<o:p></o:p>[/FONT][/COLOR]