Hi
I have 2 listboxes,I want to add the selected item of the listbox1 to listbox2 but if the item already exists in listbox2,I don't want to add it
I used the following code but it didn't work.Why?
For X = 1 To List2.ListCount
If List2.List(X - 1) = List1.List(List1.ListIndex) Then
Exit sub
Else
list2.additem list1.list(list1.listindex)
End If
Next