各样老师:在下面的代码中,怎么在红色代码处老是出现“运行时错误‘438’,对象不支持该属性或方法”或“对象块变量未设置”等错误?应怎样更正请老师们帮助者了!谢谢!
代码运行的要求是将网上的数据复制或下载到表中
Sub LOADIE() '在代码的常见的处理情况
Set iea = CreateObject("InternetExplorer.Application")
iea.Visible = True
iea.Navigate "http://www.pinble.com/Lottery.htm" '←打开某个网页,要一定时间,但代码会往下执行
Do Until iea.ReadyState = 4 '检查网页是否加载完毕(4表示完全加载)
DoEvents '循环中交回工作权限给系统,以免“软死机”
Loop
Set doc = iea.Document
With iea
'For i = 1 To .Document.All.Length - 1
'If UCase(.Document.All(i).tagName) = "七星彩" Then
'If .Document.All(i).HREF = "七星彩" Then
Set r = .Document.All.tags("option")
For i = 0 To r.Length If .r(i).innerText = "七星彩" Then .r(i).innerText.Click
Exit Sub
End If
'End If
Next i
End With
End Sub