30285

How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)

I want to be able to click on Open, Save, Save As... In Internet Explorer via VBA.

I attached a pic of the download dialog box...

<img src=https://www.e-learn.cn/content/wangluowenzhang/"https://i.stack.imgur.com/teNOZ.png" alt="download dialog box">

Answer1:

I used the shortcut keys for these. Here they are for IE11.

Note: the code will not run as you expect if IE is not the active window on your machine so it won't work while in debug mode. All this is doing is the equivalent to pressing keys on the keyboard.

Open

    <li>Shortcut key:Alt</kbd>+O</kbd></li> <li>VBA: Application.SendKeys "%{O}"</li> </ul>

    Save

Recommend

  • Force refresh of browser-cache for HTML document
  • Angularjs remove() method is not working on IE11
  • WinHttp errors on option 9 / Win2008 / Classic ASP
  • IE11 textarea loses focus if another textarea is disabled
  • force json_encode to create strings
  • Converter from SAT to 3-SAT
  • runtime error when linking ffmpeg libraries in qt creator
  • Excel VBA How to populate a multi-dimensional (3d) array with values from multiple excel ranges?
  • How to load more than one div at a time
  • Getting media player state in windows phone 7
  • In-place sed command not working
  • Ajax Upload File: $_FILES is empty but files exists in request header
  • Eloquent paginate function in Slim 3 project using twig
  • MonoTouch: How to download pdf incrementally as indicated in the Apple slides “Building Newsstand Ap
  • Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
  • How do I get HTML corresponding to current DOM tree?
  • Custom Tabgroup Appcelerator
  • Very simple C++ DLL that can be called from .net
  • Alert pop up with LWUIT
  • Can I check if a recipient has an automatic reply before I send an email?
  • Disabling Alt-F4 on a Win Forms NotifyIcon
  • QLineEdit password safety
  • Getting last autonumber in access
  • Validaiting emails with Net.Mail MailAddress
  • Perl system calls when running as another user using sudo
  • Where to put my custom functions in Wordpress?
  • Which linear programming package should I use for high numbers of constraints and “warm starts” [clo
  • Javascript + PHP Encryption with pidCrypt
  • How to show dropdown in excel using jrxml (jasper api)?
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • AngularJs get employee from factory
  • Benchmarking RAM performance - UWP and C#
  • Acquiring multiple attributes from .xml file in c#
  • -fvisibility=hidden not passed by compiler for Debug builds
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How can I remove ASP.NET Designer.cs files?
  • Bitwise OR returns boolean when one of operands is nil
  • MATLAB: Piecewise function in curve fitting toolbox using fittype
  • java string with new operator and a literal