embeded combobox

proctk

Well-known Member
Joined
Dec 24, 2004
Messages
840
Hi

I'm have a worksheet with about 200 comboboxes on it I want every combobox to be populated with the things in th edrop down list. The only thing I need in the drop down list is the number one and ideas on an easy way to do this
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Why not use data, validation, rather than a combobox? Especially if they'll all be the same, it's a whole lot easier to copy a validation cell to exactly the right place, rather than a combobox.

Also, with that many comboboxes, watch your file size go sky high.
 
Upvote 0
If you make one combo box the way you want it, you can just make a copy, and that combo box will have the same list fill range.
 
Upvote 0
I'm probley complicating things but all the comboboxes have been created and named all ready
 
Upvote 0
You could use something like this; just change the range to where your data that's going to fill the boxes is.

Code:
Dim cb As Object

    For Each cb In ActiveSheet.OLEObjects
        If cb.progID = "Forms.ComboBox.1" Then cb.ListFillRange = "A1"
    Next cb
 
Upvote 0

Forum statistics

Threads
1,203,601
Messages
6,056,209
Members
444,850
Latest member
dancasta7

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