Inserting Macros into Custom Ribbon

Skinny1434

New Member
Joined
Feb 15, 2012
Messages
24
Heres one that has really been bugging me as of late. I created a custom ribbon (Excel 2010) that has a few different macros that I created. These are very simple macros. I want to be able to use these macros for any workbook, but when I click the button on the ribbon it runs the macro and opens the original excel workbook that the macro was created in. If I run the macro through VBA it does not do this, only when I click the button on the custom ribbon. Does anyone know why this happens or how I can get this to stop? Thank you!!
 
I would suggest placing the macros in the Personal Workbook rather than a workbook. As when you select to run a macro it will refer to the original workbook name.
 
Upvote 0
this is an option, the only thing about that is the annoying message you get when opening a new workbook "locked for editing" is there any way around this?
 
Upvote 0

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