Hello, I want to learn VBA (hence I just arrived at this forum). I have created the following code, sometimes it works but mostly I get Error '91' please could someone tell me what I have missed out? NB, I have changed the login codes to asterix to protect privacy.
Sub Open_Internet_Explorer()
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "http://tracking.phservice.co.uk/auth/login"
IE.Visible = True
While IE.busy
DoEvents
Wend
Dim ieDoc As Object
IE.Document.all("username").Value = "********"
IE.Document.all("password").Value = "*******"
Bookmarks