-
Apr 18th, 2006, 01:11 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] 2 listboxes
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|