Code:
Private Sub »»_Click()
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
ListBox2.AddItem (ListBox1.List(i))
End If
Next i
For j = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(j) = True Then
ListBox1.RemoveItem (ListBox1.List(j))
End If
Next j
End Sub
The part here
Code:
Private Sub »»_Click()
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
ListBox2.AddItem (ListBox1.List(i))
End If
Next i
This will take the multi selected items and will add them to listbox2
This code is where i am having problems
Code:
For j = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(j) = True Then
ListBox1.RemoveItem (ListBox1.List(j))
End If
Next j
End Sub
What I want to happen is as soon as the items selected were added to the listbox2 they would be deleted from listbox1
Derrick