HRESULT 异常:0x800AC472 [英] Exception from HRESULT: 0x800AC472

查看:254
本文介绍了HRESULT 异常:0x800AC472的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将 Excel 应用程序 displayalert 属性设置为 true 时,会触发此异常...为什么?

when i set Excel apllications displayalert propery to true this exception is fired... why?

推荐答案

属性浏览器是否暂停?如果是这样,这可能会有所帮助:来自 Excel 中的集合操作的 HRESULT 800ac472

Is the property browser suspended? If so, this might help: HRESULT 800ac472 from set operations in Excel

一个建议是将您的调用放在循环内的 try 块中,并继续尝试调用直到成功.它可能看起来像这样:

One suggestion is to put your call inside a try block inside a loop, and keep trying the call until it succeeds. It might look something like this:

retry = True

Do
    Try
        'Put your call here.
        retry = False
    Catch ex As Exception
        'Need to try again,
        'If this isn't the 0x800ac472 exception it should be re-thrown,
        'Use Sleep(50) to reduce the number of retries,
        'Use Exit Do or re-throw the exception to give up.
    End Try
While retry

我自己不是用 VB 编写的,如有任何错误,请见谅.

I don't write in VB myself, so apologies for any mistakes.

这篇关于HRESULT 异常:0x800AC472的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆