LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel link broken when using Report generation toolkit

Solved!
Go to solution

Hello,

I am using Labview 2018.0.1 64bits and Microsoft Excel 365.

I want Labview to enter data into Excel, and perform calculations in Excel spreadsheet.

This spreadsheet contains links to another .xla spreadsheet which allow specific thermodynamic calculations.

 

The problem is that when Labview write data into excel, the links are broken, and I have to update manually the links.

Hereafter an example of my code:

 

MSIEV_0-1727265991512.png

The excel spreadsheet is located on the network, the linked .xla spreadsheet is on local drive.

Thanks

 

0 Kudos
Message 1 of 3
(135 Views)

I want to add that I previously made some attempts using ActiveX functions.

I faced same issue.

 

However, with ActiveX functions, my process was slightly different:

Indeed, when Labview write data to Excel, the Excel file is opened (whereas I specified not to open), the data are written but the links are broken, and the Excel file remains open.

Then manually, I update the links, let the Excel file open, rerun the Labview code, and then it works.

But this manual operation is not desired and I want the Excel file remains close or at least minimized.

 

Here is the code with ActiveX:

MSIEV_0-1727267319051.png

 

 

Thanks in advance

0 Kudos
Message 2 of 3
(124 Views)
Solution
Accepted by topic author MSIEV

Finally, issue solved with an Excel Macro which update the links at the opening of the excel file.

0 Kudos
Message 3 of 3
(70 Views)