To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This vi copies data to the specified cell in the active Excel sheet.
Description
If Excel is not open Excel will be opened with a new sheet. Data can be text or graphics. Text can be transfered either in call to the vi or from clip board. If you want to copy graphics to Excel you must manually copy the graphics object to clip board before calling the vi. Data must be empty to copy graphics. Data will be copied into one cell or if TAB-spaced into several cells. The target cell can be specified.
The vi uses only ActiveX calls. The example is based on many existing examples out there doing much of the same. The sub vi RC to A1.vi mimics the Excel set Excel location.vi. It converts a row and column number to a type A1 Excel address.
Requirements
Software:
Steps to Implement or Execute Code
The Copy to Excel.vi would be run as a sub vi
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.