Can a Listbox be changed to a Combobox in VBA?

kiddzi

New Member
Joined
Jun 21, 2008
Messages
19
Hi,

I'm trying to change a listbox to a combobox but cannot seem to find an obvious way of doing this.

I've searched in this forum and on the web but have failed to find anything on this question.

I could just delete the current boxes and replace but am hoping there is an easy way to change as there's a lot of boxes that would need to be replaced.

Thanks in advance.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You can't convert them, you'll need to remove them and add comboboxes.

How many is "a lot" may be a better way of accomplishing your goal
 
Upvote 0
Where are these boxes? On a user form or are they ActiveX on a worksheet.

You have to delete the old ComboBox and then add a new ListBox.
If you then change the name of the new ListBox to the name of the old control, then the old control's event code will control the new ListBox.
 
Upvote 0

Forum statistics

Threads
1,223,270
Messages
6,171,102
Members
452,379
Latest member
IainTru

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