Putting data into combo boxes - is there a quicker way than this?

Glove303

Board Regular
Joined
Dec 18, 2010
Messages
65
I tend to populate combo boxes with loops, which I know can be inefficient.

An example would be this:

For X = 1 To 31
Me.Example_Combo.AddItem Format(X, "00")
Next X

I also add ranges from a worksheet, such as:

For X = 3 To LastRow
Me.Example_Combo.AddItem Data.Cells(X, 1).Value
Next X


I have a feeling I could use arrays to speed things up, but I have searched and cannot find a good answer. Can anyone help me on this please?

Many thanks,
James.
 
Is your active sheet a chart sheet?
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I haven't got that here to test, but I don't see why it would. Will try it later.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,787
Members
452,942
Latest member
VijayNewtoExcel

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