Yes. I have a list box I wrote something like this for. Create a text box above the list box for the user to type in. In the On Change event for the text box put this code.
Private Sub txtMyTextBox_Change()
'clear the items selected in the listbox if _
the user enters something into the textbox
Dim var As Variant
For Each var In Me.lstGroup.ItemsSelected
Me.lstGroup.Selected(var) = False
Next var
strItem = txtNewGroup.Text
For itemIndex = 0 To Me.lstGroup.ListCount - 1
If Me.lstGroup.ItemData(itemIndex) Like strItem & "*" Then
Me.lstGroup.Selected(itemIndex) = True
Exit For
End If
Next itemIndex
End Sub
You have to dim two varibles at the form level called itemIndex as Integer and strItem as String.
Hope that helps.
ProDev, Builders of Affordable Software Applications
Visit me at ==>
May God bless you beyond your imagination!!!