Excel Run Macro VI
- Updated2024-07-30
- 2 minute(s) read
Runs a macro on the current Excel workbook. You must define the macro in the Microsoft Visual Basic project associated with the workbook.

Inputs/Outputs
—
report in is a reference to the report whose appearance, data, and printing you want to control. Use the New Report VI to generate this LabVIEW class object.
macro name
—
macro name specifies the name of the macro to run from LabVIEW.
parameters
—
parameters contains the input parameters of the macro. You cannot send more than nine parameters.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
—
report out is a reference to the report whose appearance, data, and printing you want to control. You can wire this output to other Report Generation VIs.
return value
—
return value sets the value returned by the macro. The value is a variant. You must convert the value to LabVIEW data if you want to use the value in LabVIEW. Use the Variant to Data VI from the Communication»ActiveX subpalette to convert the return value to LabVIEW data.
error out
—
error out contains error information. This output provides standard error out functionality. |
—
macro name
—
parameters
—
error in (no error)
—
—
return value
—
error out
—