Ok, this SHOULD be easy, and i have done this before but not getting it working right now
i need to try and do this without saying what webpage it is but the page may be my issue...
ive tried a few different ways and getting an error any time i try and enter into the form. i want to use a getElementByID (or Name) method
error i get:
Run-time '91'
Object Variable or with black variable not set
i do have the following references set:
Microsoft HTML Object Library
Microsoft Internet Controls
what i have so far:
i need to try and do this without saying what webpage it is but the page may be my issue...
ive tried a few different ways and getting an error any time i try and enter into the form. i want to use a getElementByID (or Name) method
error i get:
Run-time '91'
Object Variable or with black variable not set
i do have the following references set:
Microsoft HTML Object Library
Microsoft Internet Controls
what i have so far:
Code:
Dim objIExplorer As Object
Set objIExplorer = CreateObject("InternetExplorer.Application")
objIExplorer.Silent = True
objIExplorer.Visible = True
objIExplorer.navigate "http://URL.net/"
Do While objIExplorer.Busy Or Not objIExplorer.readyState = 4: DoEvents: Loop
objIExplorer.document.getElementById("userLogin").Value = "USERNAME"
objIExplorer.document.getElementById("password").Value = "PASSWORD"
x = objIExplorer.document.getElementById("submitButton").sourceIndex
objIExplorer.document.all.Item(x).Click
Last edited: