简体   繁体   中英

VBA to omit save as popup from internet explorer while downloading xls file

I have searched many websites to get the answer but could not succeeded.

I want to download xls file from my company website, and through VBA i was able to sign in and then change few parameter and lastly I clicked on export button. after clicking on export button xls file will be downloaded but then I got a pop up from internet explorer about save/save as/open.

So finally I am stuck here, I used send keys to download this but is there any other option which will save xls file in my defined path and pre defined xls name.

there is another problem that after clicking on export button xls file name can be any thing.

thanks so much in advance for your help.

I have had the same problem as you a few years back. Now I think using Internet Explorer with sendkeys is generally a bad idea. I have managed to solve my problem with a WinHttpRequest (without using IE).

Let me redirect you to a similar and solved question which might help you.

VBA WinHTTP to download file from password proteced https website

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM