Dim i As Integer
Dim listitem As String 'or whatever
'THIS PARTICULAR CODE REMOVES ITEMS FROM LIST2 TO THE OTHER LISTBOX LIST1
Code:
If list2.ListIndex = -1 Then Exit Sub
For i = list2.ListCount - 1 To 0 Step -1
If list2.Selected(i) = True Then
listitem= list2.List(i)
List1.AddItem tablename
list2.RemoveItem i
End If
Next i
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.