The object invoked has disconnected from its clients Vbscript and internet explorer
Here was a vbscript that was working well and all of a sudden started throwing this vague error - "the object invoked has disconnected from its clients"
After a lot of research here is what I found that might save your day:
Find the handle of the window and re-associate the object with the handle. (This is what will reconnect your ie client back to the object"
Here is the code:
Set ie = WScript.CreateObject("InternetExplorer.Application")
hwnd = .hwnd
Set oShell = CreateObject("Shell.Application")
For Each Wnd In oShell.Windows
If hwnd = Wnd.hwnd Then Set ie = Wnd
Happy Coding :)