+ Reply to Thread
Results 1 to 5 of 5

Issues With File Download through IE11 Automation

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    Omaha, NE
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Issues With File Download through IE11 Automation

    I am attempting to download and open an excel file from the intranet using a macro to avoid having to pull the data manually on a daily basis. As of now, the data is uploaded and stored, daily, on the intranet and then pulled manually to be used in various reports. I am attempting to build a macro in an existing report that will pull the data automatically and have come across a few issues. I have figured out (for the most part) how to navigate through the IE interface to get to the file I need extracted. Upon executing the logic to "Save" the file, the IE download window pops up (IE11 gold/white bar at bottom of page) and after selecting "Open", the "running security scan" message appears. I have used Wait/Sleep events to wait for the file to open, but for whatever reason, the file never opens. Until I mouse click in excel, which by that point, the macro has already errored out. I have been looking extensively for any fixes for this and am coming up empty handed. Any help or advice would be greatly appreciated! I am a relatively new user of VBA so be gentle. Below is the logic I have so far:



    Please Login or Register  to view this content.
    Last edited by ckulback; 05-23-2017 at 09:04 AM. Reason: Not compliant with CODE formatting requirements

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Issues With File Download through IE11 Automation

    (OP add code tags …)
    Last edited by Marc L; 05-23-2017 at 10:23 PM.

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Issues With File Download through IE11 Automation


    Hi !

    What kind of data are downloaded, text ?

    Use webbrowser inner inspector tool to see which request is used, could be another way instead of piloting IE …

  4. #4
    Registered User
    Join Date
    05-18-2017
    Location
    Omaha, NE
    MS-Off Ver
    MS Office 2010
    Posts
    3

    Re: Issues With File Download through IE11 Automation

    The data is another excel spreadsheet that is downloaded after selecting a "save" button within the webpage.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Issues With File Download through IE11 Automation

    Hi ckulback,

    This sounds like a job for Power Query to me. You can install it as an Add-In to 2010 excel, from Microsoft.
    https://www.microsoft.com/en-us/down...9-02650663144d

    and then import your data using it.

    https://support.office.com/en-us/art...8-b68e9e616f5a or
    https://www.youtube.com/watch?v=LACjRvxl_2w
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. [SOLVED] Internet Automation - The Open/Save/Cancel bar in IE11
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 07-28-2023, 11:59 AM
  2. Replies: 9
    Last Post: 12-23-2016, 10:54 PM
  3. Download issues from Access to Excel
    By Kamalesh.shalini in forum Excel General
    Replies: 3
    Last Post: 09-29-2016, 12:39 PM
  4. [SOLVED] File Download Name assuming Thread Title as File Name Windows 2007
    By jaslake in forum Suggestions for Improvement
    Replies: 10
    Last Post: 03-19-2014, 01:07 PM
  5. IE Automation "Download File" dialog box
    By asipoy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2012, 09:12 AM
  6. Internet explorer download automation
    By exc4libur in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-28-2012, 05:23 PM
  7. [SOLVED] Pivot table range issues from report writer download
    By Todd F. in forum Excel General
    Replies: 1
    Last Post: 07-22-2005, 02:05 PM

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