Userform-how to dynamically update listboxes based on select

anduls

New Member
Joined
Dec 13, 2005
Messages
1
I’m trying to find the best approach for the following:

I’m working on Userform which is some sort of system design tool.
I have limited choice of items to select (less than 10) and limited capacity of how many items can be selected (limited number of slots where those items fit in). There are also conditions like:
1) Some of items will take one slot space, some will take two
2) Some items you can have only one per system, some two some without limitation.

My idea was to use number of listboxes where user selects items needed. There is no problem to populate the listbox with items, but I’m not sure about how to update following listboxes based on choices user has already made and limits and rules I described earlier.

~anduls
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Suppose your main listbox was named Box1. In the code for the form add:
Code:
Private Sub Box1_Change()

'Code to do stuff with other listboxes goes here

End Sub

This will be run when you change the selected item in your mail listbox.


HTH
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

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