Wednesday, February 22, 2012 10:37 PM
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?
- Edited by Bob Sun Wednesday, February 22, 2012 10:37 PM
Thursday, February 23, 2012 1:44 AMI think you need to compare the return value of Marshal.GetIDispatchForObject for the event source as well as the webbrowser.
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP