Excel 2016 Macro Addin Question

I created a macro to clean up data saved it as an XLAM file.  When I go to run the code it doesn't run the macro.  I can run it manually, but I need either an shortcut icon or the shortcut command to work as I need to have my coworker install this on his machine so he can run it on future files.  Copy-of-Monthly-MIM-Summary-macro.xlsm
Rrave26Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
Not sure I understand the difference by what you are refering to here "When I go to run the code it doesn't run the macro.  I can run it manually", can you clarify?

Perhaps you want to add a button on the sheet that when clicks runs the macro?  If so here is a video walkthrough of that:



»bp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Roy CoxGroup Finance ManagerCommented:
To run the macros in an addin it is best to create a personalised tab in the Ribbon. Look through the examples on Ron de Bruin's site.

You cannot simply add a button in any workbook to run the addin's code. You need to use something like this

Application.Run ("File.xlam!ShowForm")

Open in new window


Replace File with the name of your addin and ShowForm with the name of the macro to run.
Rrave26Author Commented:
Sorry Bill let me clarify,  If I go into VB and select run or step through the script the code executes without any issues.  However, if use the shortcut command I set up it will not execute.  I wanted the shortcut command to to work because I will be sharing this with another user to run the script as well.
Rrave26Author Commented:
Thanks guys.  I've got this to work.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VBA

From novice to tech pro — start learning today.