Example Code

Run Excel Macro from LabVIEW

Code and Documents


Download All
This VI creates a 2-D array, passes it to Excel, and runs an Excel Macro called GraphData. This macro has been previously defined and is included in the attached Excel workbook. In this example, LabVIEW acts as an ActiveX Client and Excel acts as an ActiveX Server.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.