PC Review


Reply
Thread Tools Rate Thread

Automate IE right-click "Save Target As..."

 
 
matt
Guest
Posts: n/a
 
      11th Apr 2007
Anyone who might know:

I am able to do limited work in automating IE via VBA. I am able to
navigate to a website, select radio and option buttons, click links,
and submit a form. If the form returns the request as HTML within the
IE window I can pull off the information from IE and dump it into
Excel. (I use something like "SetText ie.document.innerHTML" and then
pull it off the clipboard).

The website that I'm now accessing requires a username and password.
I can get into the site via VBA and navigate to where I want and
submit the form; however, my data now comes over according to a
selected option. I can select the output as *.txt or *.csv. Since
the website does not automaticaly load the data into the IE window as
HTML I can't simply use the .innerHTML option.

If I select the *.txt or *.csv output option and submit the form the
output is returned in the IE window as a link. I can then
programmatically click the link.

If the output option is *.txt and I click the link, the text file is
opened in the IE window. However, because it does not have a HTML
format I cannot use .innerHTML to copy the data over.

How can I programmatically get the text off of IE and into Excel?

Additionally, I'm wondering how to programmatically right-click the
link and select the "Save Target As..." option. I could select the
output option as *.csv and then save the target. I could then use VBA
to then open the *.csv file and copy the data over. Since the website
requires a username and password a simple Workbooks.Open
Filename:=http:... will not work.

How can I programmatically perform the right-click "Save Target As..."
option via VBA?

Thanks in Advance,

Matt

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable the option "save target as" when I right click? =?Utf-8?B?UGV0ZVI=?= Windows XP Help 2 12th Mar 2005 03:13 AM
Disappearance of "save target as" command from IE (right click) =?Utf-8?B?Y2hpbm1heTQyMA==?= Windows XP Networking 1 18th Oct 2004 12:32 PM
Right Click "Save Target As" Doesn't Work In Outlook =?Utf-8?B?SmF5IFRob21hcw==?= Microsoft Outlook 0 8th Jun 2004 05:11 AM
unable to right click and "save target as" on files dane parker Windows XP Internet Explorer 1 19th May 2004 04:36 AM
Re: Can not right click in browser window and "Save Target As" Ramesh [MVP] Windows XP Internet Explorer 1 18th Dec 2003 02:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:58 AM.