Re: Trigger Filter With Cell Change
Ok got it sorted just drop this in place of your TextBox1 code
Private Sub TextBox1_Change()
With Sheet1.Range("A14:A31")
If TextBox1 <> "" Then
.AutoFilter field:=1, Criteria1:="<=" & TextBox1.Value, visibledropdown:=False
Else: AutoFilterMode = False
End If
End With
End Sub
you will find that as soon as you type a number it will filter and show all results that number and below, there is no autofilter dropdown visible, if you clear the textbox then the selection becomes unfiltered, an autofilter will only show up to 1000 entries if you have a large database there are some other ways around it but not as elegant!
You will have to specify the entire range that you want filtered as i have done in the with statement.
Regards,
Simon