This code was able to run on my home laptop but not my work laptop.
Sub Autologin()
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "my_url"
IE.Document.GetElementByID("j_username").Value = "my_username"`
The error occurs on the last line.
Run-time error '-2147417848 (80010108)':
Automation error, The object invoked has disconnected from its client.