Hello,
Im trying to write a method that when you click the button i created in my custom ribbon, calls a method that runs a macro from another file somewhere on the ActiveDocument.
So far i have this method below which i have put together from various different hints on the web. control.Tag holds the name of the file i wish to call that has the macro inside it, that i want to apply to the current document.
But good.run(template) keeps throwing "No overload for method 'Run' takes '1' arguments" I have not been able to find a comprehendible explanation of this error.
public void RunMacroProg(IRibbonControl control)
{
Word.Application good = new Word.Application();
Word.Document bad = good.ActiveDocument;
Object template = myMacroLocation + control.Tag;
good.Run(template);