Example Code

Programmatically Edit Excel Cells

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

Allows the user to programmatically select cells from an Excel spreadsheet and edit them.

 

Description

Uses LabVIEW to programmatically control and edit cells from an Excel speadsheet

 

Requirement

  1. LabVIEW2013 (or compatible)

 

Steps to Implement or Execute Code

  1. Open Write to Excel.vi
  2. Open test.xlsx to see the default values then close it.
  3. Run the VI.
  4. Reopen test.xlsx to see changed data.

Additional Information or References

NI Snippet

 245.JPG

 

 

**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.