Automate Password log-on

D

donbowyer

I'm using the code below from an earlier posting to log on to the web and
navigate to a particular page.

With ie
.Visible = False
.Navigate "https://somepage.com"
Do Until Not .Busy
DoEvents
Loop
EndWith

It works OK but the page I'm trying to open has a User Name/Password
DialogBox which although pre loaded and saved with the appropriate data still
needs a non automated click on the Submit button. How can I automate this?

From the same earlier posting I have tried the following

Set ipf = IE.Document.all.Item("User Name")
ipf.Value = "myUserID"
Set ipf = IE.Document.all.Item("Password")
ipf.Value = "1234"
Set ipf = IE.Document.all.Item("but_login") '???
ipf.Click

but get an error message "method 'Document' of object 'IWebBrowser2'
failed"
Any suggestions would be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top