【发布时间】:2013-10-12 13:44:28
【问题描述】:
我正在使用:
While ie.busy
DoEvents
Wend
' Some Code
在我的代码中添加暂停,同时 Internet Explorer 刷新。但这似乎效果不佳。 '某些代码部分过早执行并引发错误。
我也尝试过使用其他方法。例如
Errorhandler:
While ie.busy
DoEvents
Wend
On Error Goto Errorhandler
'Some Code
但即使这样也行不通,有时代码在成熟之前就被删除了。
请推荐一个可靠的替代 ie.busy
【问题讨论】:
-
请参阅this link,了解如何处理繁忙的等待循环。你不应该只检查
.busy,还要检查ReadyState = 4 'Complete。
标签: internet-explorer vba