assigning macro

Bobthebuilder

Board Regular
Joined
May 2, 2002
Messages
76
How do you assign a change macro to a checkbox (created from the forms toolbar)?

How do you find the name of checkbox after it has been created.
I've also tried to reference the cell that the checkbox is linked to and it doesn't seam to work.

I've tried to use the following code ...

private sub no11_click()

code in here

end sub

Please and thanks!!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
getting objects names

Further to above...

How do you get the objects name!

In this case, a checkbox created from the forms toolbar???

Any ideas
 
Upvote 0
Re: getting objects names

Bobthebuilder said:
Further to above...

How do you get the objects name!

In this case, a checkbox created from the forms toolbar???

Any ideas

ALT-F11

Select the form in the editor right click the object and select PROPERTIES the name of the object is at the top of the properties box
 
Upvote 0
If the CheckBox is from the Forms Toolbar, right click it and the name will appear in the Name box (to the left of the Formula Bar). You can change it by editing the text and pressing Enter.

To assign a macro, right click the CheckBox and choose Assign Macro.

Why aren't you using a CheckBox from the Control Toolbox. It might be easier.
 
Upvote 0

Forum statistics

Threads
1,221,689
Messages
6,161,300
Members
451,695
Latest member
Doug Mize 1024

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