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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

HalfAce

MrExcel MVP
Joined
Apr 6, 2003
Messages
9,456
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?
 

Forum statistics

Threads
1,172,022
Messages
5,878,768
Members
433,370
Latest member
mcleven

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
Top