I use IE.nagivate to web URL and use .readystate and .busy
to check whether the webpage is loaded completely. But is not
stable at all, sometimes, it works or sometimes not. I heard one EEvthread at
to solve the issue, it shoud use DownloadComplet events. But I don't
know how to use and what is different using between DownloadCOmplet
and .readystate and .busy ?And I check information from Microsoft,
it just reports DonwloadComplete events and
doesn't have any example to show how to use it
The question is
QUestion-1: What is different between .readystate and DownloadComplete ?
QUestion-2 : How to use DownloadComplete event in VBA using IE object
Question-3, Could you provide some code for me to follow for tutorial ?
Question-4, in just mentioned EE thread above , I just see the subroutine, objIE_doucmentComplete,
but don't see how to activate the subroute ,Why?
Is it automation calling without VBA users to call it ?
Private Sub objIE_DocumentComplete(ByV
al pDisp As Object,
URL As Variant)
If (pDisp Is objIE.Object) Then
Debug.Print "Web document is finished downloading"