From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error -2147417851 for example write table to XL

Solved!
Go to solution

Hi, I want to save array data into excel. I try the example    write table to XL.vi 

but error -2147417851 comes out 

error.JPG

I have no idea to solve this error.

Can anybody help?

Thank you very much!

0 Kudos
Message 1 of 7
(2,998 Views)

Please attach the VI you are using.

0 Kudos
Message 2 of 7
(2,991 Views)

The example vi works fine (LV2009 with Excel 2003). What Excel version do you have installed on you machine?

 

Ben64

0 Kudos
Message 3 of 7
(2,988 Views)

Oh, here is the example

0 Kudos
Message 4 of 7
(2,977 Views)

It is work fine in another machine with LV 2010 and Excel 2007.

But for this machine with LV 7 and Excel 97 there is an error,and i don't know why.

0 Kudos
Message 5 of 7
(2,975 Views)
Solution
Accepted by topic author Edith

Each version of Excel has its own object reference, and Microsoft has made changes to some of the classes with each version of Excel. Thus, it is highly likely that an example will work with one version of Excel, but not another since the properties and methods will have changed. The only thing you can do is that you have to look at the documentation for the Excel object model on MSDN to see what's different.

Message 6 of 7
(2,964 Views)

Oh, yes  I upgrade excel to 2007, still using LV7.1, it works.

Thank you so much!

0 Kudos
Message 7 of 7
(2,952 Views)