How to change this VBA that searches in the first visible column of the ListBox.
Search in the second visible column of the ListBox.
>>> You've noted many times <<<
>>> use code - tags <<<
Search in the second visible column of the ListBox.
>>> You've noted many times <<<
>>> use code - tags <<<
Code:
Private Sub T_40_Change()
Dim StrText As String
StrText = LCase(T_40.Text)
With LB_00
For i = 0 To .ListCount - 1
If LCase(Left(.List(i), Len(StrText))) = StrText Then Exit For
Next i
If i = .ListCount Then .ListIndex = -1
If i <> .ListCount Then .ListIndex = i
End With
End Sub
Last edited by a moderator: