LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copying data to a named excel sheet

Solved!
Go to solution

Hi,

 

I want to copy data from a csv file to a named sheet in a .xls template file.   How do I do this?   I also like to copy data from a 2D array to a named

sheet in a xls file

0 Kudos
Message 1 of 5
(2,479 Views)

Use 'Write to Spreadsheet' VI for writing table into CSV File.

 

hsbkxbqi6723877596674955824.png

 

 

Have a look on the shipped example  \LabVIEW 2010\examples\office\Excel Reports.llb\Generate Report From Template (Excel).vi  to save table into excel template file.

 

 

Also see this link for more information. http://zone.ni.com/devzone/cda/pub/p/id/1339

0 Kudos
Message 2 of 5
(2,468 Views)

That won't work.  I have an excel file that has analysis and plots...after every measurement, we want to replace the raw data in the

excel file, which is one 1 worksheet, with the new data.  So I need to write into an exisitng xls file, and then re-save it to a new file name.

 

0 Kudos
Message 3 of 5
(2,460 Views)
Solution
Accepted by topic author ecrean

THis method works, but you first have to write to a csv file, and then read file in text format and append to report.

 

Excel file.png

0 Kudos
Message 4 of 5
(2,459 Views)

Fine.

0 Kudos
Message 5 of 5
(2,449 Views)