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

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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