+ Reply to Thread
Results 1 to 3 of 3

Automate "Save" from IE11 "View Downloads" dialog

  1. #1
    Registered User
    Join Date
    05-25-2017
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    2

    Automate "Save" from IE11 "View Downloads" dialog

    I am writing an Excel vba macro to automate the process of downloading .csv files from Yahoo Finance.

    My process flow is:
    1. Open IE
    2. Navigate to the link
    3. The link automatically pops up "View Downloads - Internet Explorer" dialog box and prompt to "Open" or "Save"
    4. Click "Save"
    5. Close
    6. Repeat 1-5 with different link

    So far I have only been able to complete until step 2 and stuck when the "View Downloads - Internet Explorer" appears.
    Have been searching high and low but couldnt find a solution to get past the IE "View Downloads" dialog box.
    Greatly appreciate if anyone could point me some directions

    Thanks =)

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,651

    Re: Automate "Save" from IE11 "View Downloads" dialog

    Do an internet search for something like Excel VBA download Yahoo Finance. You will find many useful guides\tutorials\videos on how to do this.

    Here's one with an example workbook.
    Importing Historical Stock Prices from Yahoo into Excel
    Last edited by AlphaFrog; 05-26-2017 at 01:45 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-25-2017
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    2

    Re: Automate "Save" from IE11 "View Downloads" dialog

    Thanks for your reply!

    I was using different method to download data from Yahoo Finance (Workboos.Open(URL)) until recently when they changed their API.
    They seem to block any access that identifies itself as Excel so I thought the only way was to automate IE and download it.
    The example works with slight modification

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  2. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  3. [SOLVED] Open Workbook in "Full Screen" mode but with sized "Window" View
    By HGL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2016, 05:54 AM
  4. Replies: 4
    Last Post: 04-05-2014, 08:53 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 5
    Last Post: 02-14-2012, 01:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1