Referencing Comboboxes by Name

XCell_Student

New Member
Joined
Mar 20, 2014
Messages
2
Hi guys,

Long time viewer, first time poster.

I have several comboboxes that I will be using on a single worksheet and I need to assign (and read) their values. Would naming the comboboxes be the best route? I am coding several subs within one module, will I be able to reference the comboboxes by their names in the separate subs?

If naming comboboxes is the best route, then I have an additional simple question - how do I reference the comboboxes by their name?

I'm working in Excel 2010 if that helps.

Thanks.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi guys,

Long time viewer, first time poster.

I have several comboboxes that I will be using on a single worksheet and I need to assign (and read) their values. Would naming the comboboxes be the best route? I am coding several subs within one module, will I be able to reference the comboboxes by their names in the separate subs?

If naming comboboxes is the best route, then I have an additional simple question - how do I reference the comboboxes by their name?

I'm working in Excel 2010 if that helps.
What kind of ComboBox are you using... Form controls or ActiveX controls?
 
Upvote 0
Hi Rick, I'm using Form controls I think. I need a combobox that will allow a string variable to be assigned to it, so if Forms can do that then I will be sticking with them.
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,673
Members
449,178
Latest member
Emilou

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