excel VBA权限被拒绝错误70

时间:2015-07-04 11:23:34

标签: excel vba

我有这个简单的代码

Do
If passTime - currentTime > TimeSerial(0, 0, 20) Then GoTo Reset
If Sheet8.IE.document.getElementsByTagName("font")(0).innerText = "Successful" Then _
checkExist = 1 Else checkExist = 0
Loop Until checkExist = 1
DoEvents

检查是否存在

<font color="blue">Successful</font>   

但问题是它偶尔会给我许可拒绝错误70并突出显示代码

If Sheet8.IE.document.getElementsByTagName("font")(0).innerText = "Successful" Then _

当我将鼠标悬停在它上面时返回结果checkExist = 0, 谁能告诉我,我做错了什么?

0 个答案:

没有答案