EXCEL Run a macro function

The EXCEL Run a macro function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the EXCEL Run a macro function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the EXCEL Run a macro option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
SheetYesText-The name of the sheet
Macro nameYesText-The name of the macro to execute

Output variables

This action does not produce output variables.


Errors

ErrorDescription
File not openThe Excel file must be open
Macro not foundThe specified macro does not exist

Tips

  • The file must be a macro-enabled workbook (.xlsm)
  • Macros must be enabled in Excel

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.