这个是我从网上摘下来的一段代码!
Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant)
On Error Resume Next
Dim appendstr As String
Dim oldhtml As String
appendstr = "<div>TEST</div>"
oldhtml = IE.Document.body.innerhtml
IE.Document.body.innerhtml = oldhtml & appendstr
End Sub
Private Sub IE_DocumentComplete(ByVal pDisp As Object, URL As Variant)
On Error Resume Next
Dim appendstr As String
Dim oldhtml As String
appendstr = "<div>TEST</div>"
oldhtml = IE.Document.body.innerhtml
IE.Document.body.innerhtml = oldhtml & appendstr
End Sub
可是没有后文啊?是不是网页内容出错后,代码里又没有具体执行地方,
所以死掉了啊?