Run Macro#
Runs the specified macro in the Excel document. To run macros from a file, you need to enable the "Trust access to the VBA project object model" option in Excel (see video).
| Link to Excel | [Link] Link to the Excel document processing process. The variable name in this property must match the variable name in the "Link to Excel" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document. |
| Link to Document | [Link] Link to the document currently being worked on. The variable name in this property must match the variable name in the "Link to Document" property of the "Create Document" or "Open Document" blocks from the Excel group that were previously used to create or open this document. |
| Method Name | [Text] The name of the method/function to be executed. If the "Macro File" property is specified, this name must be present in the file. |
| Method Parameters | [Number/Text/List] Parameters that will be passed to the method upon execution. If a list is specified, each item in the list will be passed as a separate method parameter. |
| Macro File | [Text] The macro file. If the property is specified, this file will be loaded into the VBA environment before execution. The file extension must be ".bas". |
| Result | [Text] The result of the execution. |
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Message Level | Select the message level that blocks will output during execution. Possible values:
If "Default" is selected, the value from the "Start" block of this diagram will be used. |
| Error Text | [Text] Returns detailed information about the error in case of incorrect execution of the block. |