I have the following code for the webpage (which is in the code). When I use it I get the Run time error 438 (Object doesn't support this property method) highlighting the IE.Document.getElementsByN
D").Value = "Username1".
I would like the username to be entered automatically and continue button next to the username box to be clicked automatically.
How can I achieve this?
Dim IE As Object
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
' Wait for the page to load.
Do While IE.Busy Or IE.ReadyState <> 4
IE.Document.getElementsByName("CustID").Value = "Username1"