I have the following code to use an auto filter; however, I want the user to enter the criteria into the "custom filter" under 'equal to'. The user would input a contract number ["=CON025070" in the code below].
Sub ContractFilter()
'
' ContractFilter Macro
' Macro recorded 10/4/2006 by scott neel
'
'
Selection.AutoFilter Field:=5, Criteria1:="=CON025070", Operator:=xlAnd
Rows("10:10").Select
Range(Selection, Selection.End(xlDown)).Select
Sheets.Add
Sheets("Data").Select
Sub ContractFilter()
'
' ContractFilter Macro
' Macro recorded 10/4/2006 by scott neel
'
'
Selection.AutoFilter Field:=5, Criteria1:="=CON025070", Operator:=xlAnd
Rows("10:10").Select
Range(Selection, Selection.End(xlDown)).Select
Sheets.Add
Sheets("Data").Select