Combobox For Loop Help

smeader693

New Member
Joined
Aug 7, 2006
Messages
2
I have a userform with 10 rows. Each row contains a combobox for the size. Is there a way to use a for loop to load the same items into the combo box instead of doing each one individually. There are 14 items in each box so that would be 140 lines of code.

Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hello smeader693, welcome to the board.
I'm a little confused by your question.
When you say you have a userform, do you mean you're using an actual UserForm, or are you referring to a form on the worksheet itself for the user to enter data into?
(If you mean an actual UserForm then I'm not sure what you mean by:
"a userform with 10 rows.").

As for loading the ComboBoxes, it sounds like the choices will not only all be the same, but
may be coming from a fixed list. (yes?) If so, then is there a reason you can't just use the
Input range (Forms ComboBox) or the ListFill property (Controls Toolbox ComboBox) to
load them up?

If you're using an actual UserForm, how are you populating the ComboBox(es) now?
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

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