VBA Internet Explorer Automation - How to Select “Open” When Downloading a File

后端 未结 3 429
执笔经年
执笔经年 2020-11-28 13:09

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 usin

3条回答
  •  时光取名叫无心
    2020-11-28 13:38

    I sent the shortcut keys to the application. Here they are for IE11. Sorry I could not test in IE9. If you hold down Alt, it may show you the other key to the combo as IE11 does.

    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.

    • Shortcut key:Alt+O
    • VBA: Application.SendKeys "%{O}"

提交回复
热议问题