UserForm moving Multiple Column rows between multiple List Boxes

troyaaron

New Member
Joined
May 20, 2013
Messages
33
Hi All,

So I've been stuck on this for a long time and will hugely appreciate any help given.

Basically:

I have a Userform with 6 List Boxes on it.
Let's call them:
Group1
Group2
Group3
Group4
Group5 and
TempGroup

Each Group (1-5) is populated with a 2 column list from range on the spreadsheet.
TempGroup is empty to start and will act as a holding box.

I have a button next to each Group(1-5) and then 5 x numbered buttons next to the TempGroup listbox.

The idea is this...

The user can select any item in a Group listbox, and click the button next to the lsitbox which will transfer the 2 column row into the TempGroup listbox.
They can then click the appropriate numbered button, eg. Button 2, and transfer that 2 column row back into Group 2 listbox.

What's more.....(sorry)
The first column of data is a product name, the second column is a price.
It would be good if each list box could have a label that keeps subtotal of the prices of items currently in that Group list box (changes as items are moved between Groups via the TempGroup).
Once the user is happy with Group setup a button will allow that configuration of lists to be put into a spreadsheet.

I did contemplate drag and drop but that killed my brain so would settle for the button approach as described but cant even get that working....
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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