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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,136,261
Messages
5,674,705
Members
419,520
Latest member
Jennifer4Dillon

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