Belleke
Well-Known Member
I am using this code to filter a listbox (column A) This works perfect.
But I want to filter on Column B And E as well, but whatever I try the results i get are not correct.
Anybody suggestions?
Thanks in advance.
Code:
Private Sub Commandbutton1_Click()
For i = ListBox1.ListCount - 1 To 0 Step -1
If InStr(1, ListBox1.List(i), TextBox1) = 0 Then ListBox1.RemoveItem (i)
Next
End Sub
Anybody suggestions?
Thanks in advance.