alreadyinuse3000
Technical User
hi there,
a couple weeks ago i postet a question about loading IE-Content into Excel.
My problem is now, that it doesnt load the content into the dashboard since the browser is not fully loaded. (failure 8010040)
When googeling for help I always found a codeline called DocumentComplete which is unfortunately for Delphi.
My question: Is there something for VBA as well?
(Do: Loop Until IEApp.busy = False doesnt work for ExecWB)
Sub scanner()
myUrl = "Set IEApp = CreateObject("InternetExplorer.Application")
IEApp.Navigate myUrl
Do: Loop Until IEApp.busy = False
Do: Loop Until IEApp.busy = False
IEApp.Visible = True
IEApp.Document.All.Search.Value = "je"
SendKeys "{TAB} + {Enter} + {Enter}", True
' Do: Loop Until IEApp.busy = False
IEApp.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT
ActiveSheet.PasteSpecial
End Sub
Many thanks
AIU
a couple weeks ago i postet a question about loading IE-Content into Excel.
My problem is now, that it doesnt load the content into the dashboard since the browser is not fully loaded. (failure 8010040)
When googeling for help I always found a codeline called DocumentComplete which is unfortunately for Delphi.
My question: Is there something for VBA as well?
(Do: Loop Until IEApp.busy = False doesnt work for ExecWB)
Sub scanner()
myUrl = "Set IEApp = CreateObject("InternetExplorer.Application")
IEApp.Navigate myUrl
Do: Loop Until IEApp.busy = False
Do: Loop Until IEApp.busy = False
IEApp.Visible = True
IEApp.Document.All.Search.Value = "je"
SendKeys "{TAB} + {Enter} + {Enter}", True
' Do: Loop Until IEApp.busy = False
IEApp.ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT
ActiveSheet.PasteSpecial
End Sub
Many thanks
AIU