Form Control vs. ActiveX Control

bdschleich

Board Regular
Joined
Apr 26, 2005
Messages
133
I have three different options to select from, with a check box next to each item. After the user selects one of the check boxes, I want the check box to activate a macro.

I have Excel 2007 and noticed that there are two different types of check boxes - Form Control and ActiveX control. I was hoping to find out which one of these I should be using and what steps I need to complete to subsequently write the script of code needed for the macro.

Thanks!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
If you use Forms controls, you simply right-click them and choose Assign Macro. If you use ActiveX controls, you need to use the View Code button on the ribbon and put code into the Click event. I prefer the Forms controls as they are more stable in my experience unless you need the additional formatting and functional capabilities of ActiveX controls.
 
Upvote 0
Form controls you can assign to any macro, whereas ActiveX controls need specific event handlers (that could also call any macro). If it's something simple, I'd go with Form controls.
 
Upvote 0

Forum statistics

Threads
1,224,276
Messages
6,177,656
Members
452,790
Latest member
Yasmin1985

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