Move item between listboxes

treeger15

New Member
Joined
May 17, 2016
Messages
3
I am having a very difficult time getting these items to be removed from the original listbox once i transfer them to another.
I've tried different things but this is the closest I can get without an error. It involves no removing.



Code:
Private Sub BTN_NotInGAIT_Click()


    Dim i                     As Long
    Dim j                     As Long


    NIGlbx.ColumnCount = CClbx.ColumnCount
    For i = 0 To CClbx.ListCount - 1
        If CClbx.Selected(i) Then
            With NIGlbx
                .AddItem
                For j = 0 To .ColumnCount - 1
                    .List(.ListCount - 1, j) = CClbx.List(i, j)
                Next j
               
            End With
        End If
    Next i
End Sub



Thank you
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top