AutoFilter/Advanced Filter

cgmojoco

Well-known Member
Joined
Jan 15, 2005
Messages
699
I tried this code to filter more than one or statement, without any luck:
Code:
Sub Macro3()
'
' Macro3 Macro
' Macro recorded 12/5/2005 by Mitchell Employee
'

'
    Range("E1").Select
    Selection.AutoFilter
    Selection.AutoFilter Field:=5, Criteria1:="=MITCHELLRX", Operator:=xlOr, _
        Criteria2:="=MITCHELLFL", Operator:=xlOr, _
        Criteria3:="=MITCHELL"
End Sub

Is there a way to add more than two criteria?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,203,169
Messages
6,053,865
Members
444,690
Latest member
itgldmrt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top