View Full Version : Launch Website and log in

05-29-2015, 08:29 AM
Hi All

Im attempting to launch website and log in. Launching webiste seems extremely easy, but logging in, the code keeps on stalling.

Any advise is greatly welcomed.

Sub test()
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = False
IE.navigate "http://testwebsite1"
While IE.Busy Or IE.ReadyState <> READYSTATE_COMPLETE: DoEvents: Wend
Set HTMLdoc = IE.Document
' Input the userid and password
IE.Document.getElementById("uid").Value = "111111"
IE.Document.getElementById("password").Value = "111111"

When I f5 the code, the website launches, but debugs on

Set HTMLdoc = IE.Document

Any ideas, why it stalls on this piece?

Thank you kindly.