Forum Discussion
Massimo Paolini
Oct 02, 2025Copper Contributor
VBA New Edge Web Browser Control in Access - Wait for Page Load
Using the new Edge Browser Control in Access, How to wait the time of loading page to give the next command in VBA.
2 Replies
- Tom_van_StiphoutIron Contributor
I entered "javascript page finished loading" and got several promising hits, including using the window.onload event.
- Massimo PaoliniCopper Contributor
some example code? like this...
Dim jsCode As String
jsCode = "window.onload = function() { window.external.PageLoaded(); };" ' Inject this script into the page
or the old one
Do While EdgeBrowser.ReadyState <> READYSTATE_COMPLETE
DoEvents
Loop
?