Help Centre › Building Processes
Execute a macro.
Runs on: macOS and Windows only.
Add it to a process
In the process designer, open the Add step tab. Find Run macro under Excel › Workbook, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| File path | No | Enter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened. |
| Sheet | Yes | Name of the sheet in the Excel file. Supports wildcards: * matches any characters. |
| Macro name | Yes | The name of the macro to execute |
See all Excel steps.
Errors
| Error | Description |
|---|---|
| File not open | The Excel file must be open |
| Macro not found | The specified macro does not exist |
Tips
- The file must be a macro-enabled workbook (.xlsm)
- Macros must be enabled in Excel