Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7902091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:24:24+00:00 2026-06-03T09:24:24+00:00

This is my first question ever here on stackoverflow! I’ve been searching for a

  • 0

This is my first question ever here on stackoverflow!

I’ve been searching for a solution to this problem for a while and haven’t found any help. I may just be using the wrong keywords in my searches, but so far I’ve had no luck. Here’s the question:

In VBA, how can I select the “Open” option from the file download dialog in Internet Explorer?

Just for extra clarification, I’m talking about the yellow-orange bar that pops up across the bottom of the screen in IE9 when a file is downloaded.

I’m doing some VBA automation to download hundreds of PDFs from the web using Internet Explorer, but there is an intermediate step where a .fdf file has to be opened before I get to the actual PDF. So I first need to select the “Open” option so that I can move on to the next step of the automation. Like I said earlier, I’ve done a lot of searching and had no luck so far.

I’ve tried using SendKeys in hopes that hitting Enter would work, and that was a last ditch effort that didn’t work.

Thanks in advance for the help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:24:26+00:00Added an answer on June 3, 2026 at 9:24 am

    I have covered this extensively here.

    Topic: VBA/VB.Net/VB6–Click Open/Save/Cancel Button on IE Download window – PART I

    Link: http://www.siddharthrout.com/2011/10/23/vbavb-netvb6click-opensavecancel-button-on-ie-download-window/

    and


    EDIT (IMP) If you are using IE 9 Do not forget to read PART 2 as it includes and covers the window structure of IE 9 download window


    Topic: VBA/VB.Net/VB6–Click Open/Save/Cancel Button on IE Download window – PART II

    Link: http://www.siddharthrout.com/2012/02/02/vbavb-netvb6click-opensavecancel-button-on-ie-download-window-part-ii/

    The above links discuss on how to use use the API’s to achieve what you want.

    From the 1st link…

    Like you and me, we both have names, similarly windows have “handles” (hWnd), Class etc. Once you know what that hWnd is, it is easier to interact with that window.

    Findwindow API finds the hWnd of a particular window by using the class name and the caption of the window (“File Download”) in this case. The “Open“, “Save” and “Cancel” buttons are windows in itself but they are child windows of the main window which is “File Download“. That means each one of those will also have a hWnd 🙂 To find the child windows, we don’t use FindWindow but use FindWindowEx. All the three buttons “Open“, “Save” and “Cancel” have the same class which is “ Button”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's my HTML. Apologies for formatting - this is my first-ever question! <div id=Template>
this is my first question here at Stack Overflow. I've been looking for a
This is my first question that I haven't been able to find an answer
This is my first question ever on StackOverflow, hurray! I can honestly say I
this is my first question.. so, here we go. i have a site, 100%
this is my first question here :) I know that I should not check
This is my first question on stackoverflow. I just wonder why my getJSON code
This is my first question here so try to make my best so you
this is my first question here so sorry if I do something wrong or
this is my first time ever posting a question and I am kind of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.