XLL+ Class Library (7.0)

CXllCom::OleExecuteExcel4Macro

Call Application.ExecuteExcel4Macro

HRESULT OleExecuteExcel4Macro(
   const CString& strMacroCommand,
   LPVARIANT pvntResult
);

Parameters

strMacroCommand

The command to be run. Any arguments should be in parentheses, e.g. "do_macro(1.0,TRUE)"

pvntResult

If a result is returned by the macro, it will be placed here. Ignored if NULL.

Requirements

Header: xlpcom.h

See Also

CXllCom Class | CXllCom Methods