excel_run_macro
Run a VBA macro in the active Excel workbook. Supply the macro name and optional arguments for dynamic execution.
Instructions
Run a VBA macro in the active workbook. Macro must already exist in the workbook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workbook | No | ||
| macro | Yes | Macro name (e.g. 'Sheet1.MyMacro' or just 'MyMacro') | |
| args | No | Arguments to pass to the macro |