Hi there!
I have a combo box and a listbox.
All i want is when i select a value(text) from the combobox to check if there is a same value(same text) at the listbox and if there is, then this value will be removed from the listbox.
I tried at after update combobox this:
Dim lnI As Integer
For lnI = 0 To listbox_name.ListCount - 1
If listbox_name.ListIndex(lnI) = combobox_name.Value Then
listbox_name.RemoveItem (lnI)
End If
Next lnI
but its not working
Any ideas?
Thank you a lot!
I have a combo box and a listbox.
All i want is when i select a value(text) from the combobox to check if there is a same value(same text) at the listbox and if there is, then this value will be removed from the listbox.
I tried at after update combobox this:
Dim lnI As Integer
For lnI = 0 To listbox_name.ListCount - 1
If listbox_name.ListIndex(lnI) = combobox_name.Value Then
listbox_name.RemoveItem (lnI)
End If
Next lnI
but its not working
Any ideas?
Thank you a lot!