Autofiler with more than two variants

diggerdidoodar

Board Regular
Joined
May 20, 2002
Messages
59
Is it possible to have more than 2 results from 1 autofilter drop down arrow. Pls look at the following code to assist my problem:-

Dim My_Filter1 As Variant
Dim My_Filter2 As Variant
Dim My_Filter3 As Variant
Sheets("Data").Select
Rows("1").Select
Selection.AutoFilter
Selection.AutoFilter
Sheets("Header").Select
'My_Filter1 = InputBox("ENTER Clock N0., ie 50001", "DATA ENTRY")
'Sheets("Data").Select
'Selection.AutoFilter Field:=1, Criteria1:=My_Filter, Operator:= _
xlAnd

My_Filter1 = InputBox("ENTER Clock N0., ie 50001", "DATA ENTRY")

My_Filter2 = InputBox("ENTER Clock N0., ie 50005", "DATA ENTRY")

'My_Filter3 = InputBox("ENTER Clock N0., ie 50013", "DATA ENTRY")


Sheets("Data").Select
Selection.AutoFilter Field:=1, Criteria1:=My_Filter1, Operator:= _
xlOr, Criteria2:=My_Filter2
End Sub
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,141,068
Messages
5,704,092
Members
421,327
Latest member
Msh

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
Top