I have this code to add items to listbox2 from listbox1. How can I code a Commandbutton4 to remove selected items in listbox2
Code:
Private Sub CommandButton3_Click()
Dim i As Integer
For i = ListBox1.ListCount - 1 To 0 Step -1
If ListBox1.Selected(i) Then
ListBox2.AddItem (ListBox1.List(i))
End If
Next
End Sub