10-25-2016 04:25 AM
Hi All,
I have been working on reading a column of excel sheet using suggestions in LabVIEW forum that is using ActiveX from past two days. But could not proceed further due to error I am facing while using invoke node to open excel workbook and unable to figure out what problem is & what could be solution for same. Could someone help me on same. Attached my VI and screen shot of error i am facing.
Please let me know if you need any other information. Thanks in advance.
Thank and Regards,
Pragathi Devaraja
Solved! Go to Solution.
10-25-2016 04:28 AM
Most important: NEVER implement infinite code execution without the option to stop it properly (for Windows targets that is)!
When working with interfaces, you should get used to close the interfaces "in opposite order". That means that you have to close the Excel Application as last item.
Norbert
10-25-2016 04:34 AM
Hi Norbert,
Thanks for your reply. I tried closing application refnum atlast but still facing same prob. i hope you meant same as solution. Attached code of same.
10-25-2016 04:39 AM
You close the references at last, which is good, but still in the incorrect order. First close Sheets, then Workbook (you missed that), then Workbooks and Application as last.
Also please tell us which property/invoke node is creating the error exactly? You got two property nodes and two invoke nodes. Please use probes to identify.
Norbert
10-25-2016 04:47 AM
Hi,
Still facing same problem. I am facing problem in my workbooks invoke node.
10-25-2016 06:15 AM
Is the Path valid?
Using the code on my machine works correctly....
Norbert
10-25-2016 06:51 AM
Yes path is valid(my document is in xlsx format). I tried in different paths and different files. but again same issue.
10-25-2016 07:08 AM
Please check when setting the Excel visibility to true.
Norbert
10-25-2016 07:30 AM
Hello,
Have you tried to open just an xls file instead of an xlsx file. Which version of Excel do you have installed on your PC?
Regards,
Wade
10-25-2016 07:42 AM
Hi Wade,
I am using 2010 version of excel. I tried in XLS format too which is again giving error. My LabVIEW version is 2014. Not sure what problem i am exactly facing when Norbert is able to run same program in his system without any error.