What is error code 0x800A01A8 coming out of Excel ActiveX call?

此生再无相见时 提交于 2019-11-27 04:48:30

问题


I am using LabVIEW to talk to Excel via its ActiveX interface.

For some reason after some time successfully writing to a spreadsheet I got this error when attempting to call the a function which does something with the range.

Sorry this question is so vague, but its because I am actually using another toolkit to take care of the Excel writing.

Anybody know if there is a lookup table for Excel ActiveX calls anywhere?

Thanks


回答1:


This error code means "Object Required."

It sounds like your toolkit might have a memory leak, or it is disposing of an object prematurely.




回答2:


It's possible that the range object isn't being handled properly in the toolkit. If this is NI's reporting toolkit, you can possibly open the sub-vi's and place probes to troubleshoot the error. (This may have changed, though. I haven't looked at it since it was re-written.)

The Excel functions exposed in LV are variously called "automation" or its "object model". You can find information on where to locate the help for it at http://support.microsoft.com/kb/q222101/. A number of the links from that page have pretty good text code samples that can be translated into LV code if you care to do so.

Of course, NI's site has a number of Excel examples at http://www.ni.com/analysis/excel.htm



来源:https://stackoverflow.com/questions/1563406/what-is-error-code-0x800a01a8-coming-out-of-excel-activex-call

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!