Sub SetFilter()
Dim LowerLimit As Integer
Dim UpperLimit As Integer
Do Until LowerLimit > 0
LowerLimit = InputBox("What is the lower limit?", "Lower Limit")
Loop
Do While UpperLimit < LowerLimit
UpperLimit = InputBox("What is the upper limit?", "Upper Limit")
Loop
'This line has multiple parts.
'Need to first state where the Autofilter begins.
'You also need to tell it which field/column the filter will be on
'The two criteria use the greater than or equal to, and less than
'or equal to symbols.
Range("A1").AutoFilter Field:=1, Criteria1:=">=" & LowerLimit, Operator:=xlAnd, _
Criteria2:="<=" & UpperLimit
End Sub