当我将 Excel 应用程序的 displayalert 属性设置为 true 时,会触发此异常...
为什么?
属性浏览器是否已暂停?如果是这样,这可能会有所帮助:来自 Excel 中集合运算的 HRESULT 800ac472
一个建议是将您的调用放在循环内的 try 块内,并继续尝试调用直到成功。它可能看起来像这样:
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写的,所以对任何错误表示歉意。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)