Try this for putting items in the PennyStacks listbox (ListBox1).
Private Sub CommandButton1_Click()
Dim itemIndex As Integer
Dim lngSubItem As Long
If ListBox1.ListCount = 0 Then Exit Sub
ReDim blnSelected(0 To ListBox1.ListCount - 1) As Boolean
With ListBox1
For itemIndex = 0 To .ListCount - 1
blnSelected(itemIndex) = .Selected(itemIndex)
Next
For itemIndex = .ListCount - 1 To 0 Step -1
If blnSelected(itemIndex) Then
ListBox2.AddItem .List(itemIndex)
For lngSubItem = 1 To .ColumnCount - 1
ListBox2.List(ListBox2.ListCount - 1, lngSubItem) = _
.List(itemIndex, lngSubItem)
Next
.RemoveItem itemIndex
End If
Next itemIndex
End With
End Sub
Bookmarks