Help Centre › Building Processes
This article describes the RPA Excel functionality to run a macro.
For a full list of available functions, please read EXCEL functions.
Description
The EXCEL Run a macro function allows you to run a macro.
Setting it up
To use the EXCEL Run a macro function, follow these instructions:
{{popups:rpas/add:action=excel-macro}}
Once on a process map:
- Navigate to the process where you would like to add the EXCEL Run a macro function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the EXCEL Run a macro option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Sheet | Yes | Text | - | The name of the sheet |
| Macro name | Yes | Text | - | The name of the macro to execute |
Output variables
This action does not produce output variables.
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