-
Hi,
Does anybody know what is the event for webbrowser object which indicates that the entire page has been downloaded completely?
I've tried using document_complete, download_complete, and navigate_complete2, but all these events fire more than once during the download of the web page.
Thanks.
-
WebBrowser1_DownloadComplete() - after the download finish.
WebBrowser1_DocumentComplete - after page completely loads.
WebBrowser1_NavigateComplete2 - after web page has finished downloading everything, pictures, documents, etc.
-
Try:
Code:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
If (pDisp Is WebBrowser1.Object) Then
Debug.Print "Document is finished loading."
End If
End Sub