Dim IE as New InternetExplorer
IE.Visible = True
IE.Navigate(\"http://www.google.com\")
Do Until IE.Busy = False
Loop
IE.document.getElementsByTagName(\"Input\")(
The following worked for me. I haven't tested it extensively, but the problem hasn't recurred. I was getting the error intermittently, but always at same point.
Control of the first IE instance seems to die. However, another instance can be created by referencing the first. The dead instance can then be closed, and we carry on.
Set IEa = CreateObject("InternetExplorer.Application")
Set IEa = IE
'Where IE is the instance that's about to error
SendKeys ("%{F4}")
'Closes the old window, IE.quit in the code wouldn't work
IEa.Visible = True
Hope this works for someone else, I was getting pretty frustrated.
Brian
PS: My first post on stackoverflow, I think I did the formatting right