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