Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 107
Default Automate Password log-on

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.

--
donwb
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
use a macro to automate excel worksheet password protection Bodyshopman Excel Discussion (Misc queries) 2 July 25th 07 01:21 AM
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. Daniel Excel Worksheet Functions 0 June 23rd 05 11:56 PM
bypass password when update linking of password protected file Yan Excel Discussion (Misc queries) 1 February 7th 05 11:29 PM
Comparing password entry vs stored password - 2003 L Mehl Excel Programming 3 November 19th 04 05:52 PM
Automate Password Protection for Excel Jerry[_15_] Excel Programming 1 December 4th 03 01:21 AM


All times are GMT +1. The time now is 01:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"