How to call a macro in an add-in module?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
RoryA solved my problem getting a worksheet function to call an add-in macro in this thread: 1186404.

Now I'd like to be able to call a macro in my add-in module from a control button in a sheet. But when I right-click the shape and select Assign Macro, none of the add-in macros show up even though I can run add-in functions from that worksheet. And the only options in the "Macros In:" dropdown are open workbooks.

I would like to run the AverageRatings macro in the TestSubs folder of "Jen Add-ins.xlam" from a control button.

Thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Actually, even though the procedures in your add-in are not listed in the Macro dialog box, you can simply type the procedure name in the Macro Name field, and then click on OK.
 
Upvote 0
Solution
Actually, even though the procedures in your add-in are not listed in the Macro dialog box, you can simply type the procedure name in the Macro Name field, and then click on OK.
That worked, thanks.
 
Upvote 0

Forum statistics

Threads
1,215,756
Messages
6,126,692
Members
449,330
Latest member
ThatGuyCap

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