且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

microsoft.visualbasic.dll附加信息中出现类型为'system.runtime.interopservices.comexception'的未处理异常:来自HRESULT的异常:0x800a03ec。错误

更新时间:2023-09-11 17:08:58

错误来源在这里:

The error source is here:
Dim tmp As Integer = 0



使用Excel,单元格索引从'1'开始。

抱歉,错过了增量。



因为错误是通用的,所以很难检测到来源。



我建议检查所有涉及的对象是否有效。

另一项检查可能是先尝试读取单元格。


With Excel, cell indexes start at '1'.
Sorry, missed the increment.

Because the error is generic, it is difficult to detect the source.

I suggest to check if all involved objects are valid.
Another check might be trying to read the cell first.