abap如何调用excel中的宏

12 views
Skip to first unread message

汉得老头

unread,
Jan 23, 2008, 10:51:27 AM1/23/08
to handh...@googlegroups.com

CALL METHOD document->execute_macro         
EXPORTING macro_string = 'R3_MACRO1'         
IMPORTING retcode = retcode.    

CALL METHOD c_oi_errors=>show_message         
EXPORTING type = 'E'.


通过 application对象的run方法。
*CREATE OBJECT appl 'EXCEL.APPLICATION'.
call method of appl 'Run'     
exporting    #1 = 'Macro_protect'. "macro name

Reply all
Reply to author
Forward
0 new messages