I'm trying to program a VBA script to execute a macro from an Excel Plugin (Cognos Analyst). When I use the plugin to assign the macro (Analyst_SaveButton) to a text button, it stores what I assume is the parameter value in the text of that text button. Clicking the button then executes the macro in the external XLA plugin file and succeeds. If I try running the same macro through VBA using Application.Run "Analyst_SaveButton", it does not work. I get a "VB Error 1004 in Anlyst_XLA.Analyst_SaveButton at 110: Unable to get the DrawingOBjects property of the Worksheet class". Is there any way to use VBA to act as if it were the button being clicked when calling the macro?
Thanks,
Jim
Thanks,
Jim