简体   繁体   English

ExcelDna获取Excel UI元素

[英]ExcelDna get Excel UI element

How can we retrieve the UI elements from the DNA file because I cannot seem to access to UI elements that are created inside the DNA file? 由于似乎无法访问在DNA文件中创建的UI元素,我们如何从DNA文件中检索UI元素? I'm using Excel-Dna 我正在使用Excel-Dna

Also : 另外:

What I would like to do is for a given cell I would like to get the values of the next N cells, but whenever I get the values of the cells I get an error saying 0x800A03EC. 我想对给定的单元格进行操作,希望获得下N个单元格的值,但是每当获得单元格的值时,我都会收到一条错误消息,内容为0x800A03EC。 How can I get the values of a different than the current cell? 如何获得与当前单元格不同的值?

OK, so here's how things are looking with Excel-DNA, I assumed I cannot interact with the UI. 好的,这就是Excel-DNA的外观,我假设我无法与UI进行交互。 The only way I can have any connection with it is using the event system. 我可以与之建立任何联系的唯一方法是使用事件系统。

I solved the error 0x800A03EC by just carefully debugging the COM objects and finding the right properites to extract the value from. 我通过仔细调试COM对象并找到正确的属性来提取值来解决了0x800A03EC错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM