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

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,215,727
Messages
6,126,512
Members
449,316
Latest member
sravya

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