Sub InternetPractice()
Dim ie As InternetExplorer
Set ie = New InternetExplorer
ie.Visible = True
ie.navigate "https://www.yahoo.com"
Do While ie.Busy = True Or ie.readyState <> 4: DoEvents: Loop
ie.document.getElementById("uh-search-box").Value = "Earth"
ie.document.getElementById("uh-search-button").Click
Do While ie.Busy = True Or ie.readyState <> 4: DoEvents: Loop
ie.document.getElementById("logo").Click
Set ie = Nothing
End Sub
The code works when I step through it line by line, but not when run normally. I have tried inserting up to 45 second breaks in certain parts with no success.
Running normally, the code breaks during ie.document.getElementById("logo").Click
and gives me a
'424' object required error