I've seen a number of solutions to wait on a webbrowser to finish loading.
Most work poorly.


This works both in an Online and OffLine Mode.


Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop