Hi,
I just got this code from someone posted last year, why it is not
work for me when I run it, the error is:
Method 'Run' in COM object of class 'Excel.Application' returned
error code 0x800A03EC (<unknown>) which means: The
macro 'c:\Documents and Settings\jwang\Desktop\MonthlyTest.xls !
Macro1' cannot be found.
code:
static void test_ExcelMacro(Args _args)
{
COM xlApp;
;
xlApp = new COM("Excel.Application");
xlApp.Visible(1);
//xlApp.Run("MacroTest.xls!TestMacro");
xlApp.Run("c:\\Documents and
Settings\\jwang\\Desktop\\MonthlyTest.xls !Macro1");
// ...
}
Sharing the knowledge on Axapta.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/