Form Control Button Doesn't Work but ActiveX Does

aknorth

New Member
Joined
Dec 29, 2021
Messages
1
I have an excel file where no created Form Control Buttons workS, the following error is provided
"Cannot run the macro. The macro may not be available in this workbook or all macros may be disabled"
1640802056113.png

1640802536750.png

However if I create an ActiveX button using the same macro and name it runs just fine
1640802849591.png

1640802910908.png

1640802949627.png

I will go ahead and use the ActiveX button to get around this problem but it would be helpful to figure out why this is occurring
Thanks for the help
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Can you confirm where your macro for your form control is located? If it's in fact located in the code module for your sheet, you'll need to assign your macro in the following format . . .

VBA Code:
Book1.xlsx!Sheet11.TESTBUTTON_Click
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,447
Members
448,966
Latest member
DannyC96

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