Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default Refreshing web query that is password protected

I am trying to refresh a web query that is located on a password protected
site. I am trying to use sendkeys to send the login and password to the
prompt that comes up (see below code). However the sendkey application is
not inputing the information into the prompt. Any ideas on how to fix this?

Application.SendKeys "LOGIN" & "{TAB}" & "PASSWORD" & "{ENTER}", True
Sheets("sheet1").QueryTables("14946_10").Refresh BackgroundQuery:=False

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Refreshing web query that is password protected

Craig,
If you know the format of the URL that is sent to the server when {ENTER}is
clicked, use .PostText to send that.
e.g. querytable.posttext="?Login=xxxx&Password=whatever "

Or something like that.

NickHK

"Craig" wrote in message
...
I am trying to refresh a web query that is located on a password protected
site. I am trying to use sendkeys to send the login and password to the
prompt that comes up (see below code). However the sendkey application is
not inputing the information into the prompt. Any ideas on how to fix

this?

Application.SendKeys "LOGIN" & "{TAB}" & "PASSWORD" & "{ENTER}", True
Sheets("sheet1").QueryTables("14946_10").Refresh BackgroundQuery:=False



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
password protected page not opening by web query vive2567 Excel Worksheet Functions 0 January 13th 06 03:20 AM
How can I use web query with a password protected page? claytorm[_3_] Excel Programming 6 August 22nd 04 08:39 PM
Web query on password protected page claytorm[_9_] Excel Programming 0 August 19th 04 01:05 PM
Web Query - UserID/Password Protected Textbox tholt2 Excel Programming 0 June 29th 04 04:28 AM
Refreshing an external query on a protected sheet gavjs Excel Programming 1 October 21st 03 10:12 PM


All times are GMT +1. The time now is 06:58 PM.

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"