Hi Andy
I got it working using the array method.
' if the list is not empty
If lstMoveFrom.ListIndex <> -1 Then
itemIndex = lstMoveFrom.ListIndex
insertedItem = 0
With lstMoveFrom
If .Selected(itemIndex) Then
'if this is a multicolumn list then add other column info
If numCols > 1 Then
If lstMoveTo.ListCount > 0 Then insertedItem = lstMoveTo.ListCount
ReDim dummyArr(insertedItem, numCols - 1)
' Get all the rows and columns from the MoveTo list
For i = 0 To insertedItem - 1
For j = 0 To numCols - 1
dummyArr(i, j) = lstMoveTo.List(i, j)
Next
Next
' When we add this we only need to add the columns
lstMoveTo.AddItem .List(itemIndex)
' Now add the new columns from the old list
For i = 0 To numCols - 1
dummyArr(insertedItem, i) = lstMoveFrom.List(itemIndex, i)
Next i
' Now add the complete array (old and new records) back to the lstMoveTo
lstMoveTo.List = dummyArr
End If
.RemoveItem itemIndex
End If
End With
End If
Thanks for the link though.
Bookmarks