I found this code (which I might find useful) to open Internet Explorer and fill in Username and password on the specified website.
It works until
I'm at a loss as to the correct nomenclature to try it out.
Also, can this or something else be modified to work with Microsoft Edge or Google Chrome?
It works until
ie.Document.getElementById("uid").Value = "testID"
. ("Object required" error)I'm at a loss as to the correct nomenclature to try it out.
Also, can this or something else be modified to work with Microsoft Edge or Google Chrome?
Code:
Sub test()
' open IE, navigate to the desired page and loop until fully loaded
Set ie = CreateObject("InternetExplorer.Application")
my_url = "app.groupworks.com/#/login"
With ie
.Visible = True
.Navigate my_url
.Top = 50
.Left = 530
.Height = 400
.Width = 400
Do Until Not ie.Busy And ie.readyState = 4
DoEvents
Loop
End With
' Input the userid and password
[COLOR=#008080] ie.Document.getElementById("uid").Value = "testID"[/COLOR]
ie.Document.getElementById("password").Value = "testPW"
' Click the "Search" button
ie.Document.getElementById("enter").Click
Do Until Not ie.Busy And ie.readyState = 4
DoEvents
Loop
End Sub