Run Macro

Runs a macro stored in an Excel woorkbook.

 

Input Arguments

 

0

Integer

Workbook Handle

The handle for the workbook returned from the Open Workbook File command.

1

String

Macro Name

The name of the macro to run.

 

Return Arguments

None.

 

Returned Status

 

SUCCESS

The macro was run successfully.

FAILURE

The workbook handle was invalid, or the macro was not found.

 

Remarks

The MP will pause until the macro completes.