LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace all data in Excel?

Solved!
Go to solution

Hi,

 

How I can replace all contents in excel spreadsheet.

Suppose if I have  3x3 table and deleted one row from it in Labview.

Now I want to replace previous table with new data in same sheet.

Check below image for reference.

 

table replace.png

 

 

 

What is best way to do it?

0 Kudos
Message 1 of 3
(3,065 Views)

First of all, if ALL data is being REPLACED, it is simpler to create a NEW sheet...

Your screenshot shows that you "only" want to drop specific rows, keeping everything else as it is.

 

You have to take a look into the ActiveX or .NET API from Excel. For creating new sheets, the Office Report Toolkit could help you.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(3,057 Views)
Solution
Accepted by topic author Jaysha_18

If you want to replace all data it is as good as overwriting the existing data with new data.

Simplest way will be if you are using the csv file then you can directly overwrite the existing file by using write to spreadsheet file function and making its overwrite parameter true.

0 Kudos
Message 3 of 3
(3,035 Views)