Display full text of selected dynamic combobox in textbox

keaden

New Member
Joined
Sep 29, 2010
Messages
26
Hello again folks,
I have a quick question.

I currently have a multipage userform that populates dynamic comboboxes within a frame on a button click.

I was thinking about having a textbox on the same page that will display the full text of the active combobox in the textbox when it is clicked on.

Is this sort of thing possible and if so could anyone point me in the right direction on how to impliment this?

I had thought about creating a class and using WithEvent with a collection of comboboxes but is that possible or am I over complicating things?
 
Mike,
Thanks for the patience, Classes are new to me and I hope I haven't bitten off more than I can chew here.

The frames I mentioned are not created dynamically but there is however a multipage with 10 tabs I'm assuming that the collection will add every dynamically created combobox within the userform?

Does the code you posted allow for the display of the text within the selected combobox in an already created textbox?
 
Upvote 0
The original code was based on all the comboboxes being created inside a Multipage (any page), not inside a frame, and all of the created comboboxes being linked to the same pre-existing textbox.

The .Tag approach and the "put in collection at creation" is a better (more flexible) solution in my opinion.
 
Upvote 0

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