Starting IE up - need to pause code until IE ready for navigate command
Posted on 2007-04-11
Occasionally my code restarts Internet Explorer on purpose using:
Set objIE = Nothing
Set objIE = New InternetExplorer
objIE.Visible = True
But it seems that sometimes, the code sends a navigate command to IE a little too soon after restarting. IE isn't ready and errors out. I've inserted a 3 second pause, and that has seemed to help, but I still occasionally get the same error. How can I hold all further instruction until IE is up and ready to receive commands?