VBA Procedure to Insert Comboboxes and set their properties

ekacan

New Member
Joined
Dec 24, 2010
Messages
21
Hi Everyone,
I want to create an XL table where every record utilizes the functionality of an ActiiveX combobox. So, anytime a new row is added to the table, an ActiveX combobox must also be added on that row, and its LinkedCell property set to a cell on the corresponding row. The end users may need to add multiple rows at a time, so I do not want them to manually make those updates on each box. So, I need to call a procedure that inserts a given number of rows to the table, along with the comboboxes with their LinkedCell property set to the correct cell.

I would appreciate the help in figuring out how to:
1. write an iterative code for generating a set number of comboboxes and setting the properties of each
2. Inserting a given number of rows to the table

Thanks in advance
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,223,162
Messages
6,170,431
Members
452,326
Latest member
johnshaji

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