Delete all your code and replace with this code,
Private Sub ComboBox1_Change()
Dim s As String
s = ComboBox1
Range("A2").AutoFilter Field:=1, Criteria1:=s
End Sub
Private Sub TextBox2_Change()
Dim Rws As Long, Rng As Range
Rws = Cells(Rows.Count, "A").End(xlUp).Row
Set Rng = Range(Cells(2, 1), Cells(Rws, 3))
Rng.AutoFilter Field:=2, Criteria1:=">=" & TextBox1, _
Operator:=xlAnd, Criteria2:="<=" & TextBox2
End Sub
Private Sub TextBox4_Change()
Dim Rws As Long, Rng As Range
Rws = Cells(Rows.Count, "A").End(xlUp).Row
Set Rng = Range(Cells(2, 1), Cells(Rws, 3))
Rng.AutoFilter Field:=3, Criteria1:=">=" & TextBox3, _
Operator:=xlAnd, Criteria2:="<=" & TextBox4
End Sub
Private Sub UserForm_Initialize()
ActiveSheet.AutoFilterMode = 0
With ComboBox1
.AddItem "a"
.AddItem "b"
.AddItem "c"
End With
End Sub
Bookmarks