Move item from 1 listbox to another listbox

Solved/Closed
smd_excel Posts 27 Registration date Saturday 18 April 2009 Status Member Last seen 22 November 2012 - 19 Feb 2011 à 22:55
smd_excel Posts 27 Registration date Saturday 18 April 2009 Status Member Last seen 22 November 2012 - 18 Nov 2012 à 06:09
Hello,

need help on an excel listbox using vba.

i've got 2 listboxes on a form. listbox1 is being populated from an excel sheet. i need to move items (either one by one or all items) from listbox1 to listbox2 on a single click and also have the ability to remove items from listbox2(either one by one or all items). any help would be appreciated.

thanks
Related:

2 responses

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
27 Feb 2011 à 16:54
for list box you would have to loop thru items to locate where is the item location. Have you considered using a tree control instead of a list box control ?
smd_excel Posts 27 Registration date Saturday 18 April 2009 Status Member Last seen 22 November 2012
18 Nov 2012 à 06:09
thanks alot...worked like a charm using the tree control