I would like to ask a question with InternetExplorer object.
For WebBrowser control, there is an article How To Determine When a Page Is Done Loading in WebBrowser Control. The VB code is
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant) If (pDisp Is WebBrowser1.Object) Then Debug.Print "Web document is finished downloading" End If End Sub
However, I didn't find the above work for my VSTO 2010 Excel document-level project using InternetExplorer object.
Could anyone instruct me how I should modify the code?