I am trying to login to a website through a VBA. The VBA completes the username and password, but won't click the submit button.
This is my VBA:
When i inspect the "Go" button, this is what i have:
input width="200" type="submit" value="Go"
Any help please?
Thanx
This is my VBA:
Code:
Sub Login()
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
ie.navigate "www.something.com"
ie.Visible = True
Do While ie.Busy And Not ie.readyState = 4
DoEvents
Loop
DoEvents
ie.document.all.Item("username").Value = "xxx"
ie.document.all.Item("password").Value = "yyy"
ie.document.all.Item("submit").click
End Sub
When i inspect the "Go" button, this is what i have:
input width="200" type="submit" value="Go"
Any help please?
Thanx
Last edited: