【发布时间】:2020-02-03 12:07:59
【问题描述】:
我正在尝试使用 InternetExplorer.Application 下载文件,但它总是打开一个窗口,要求保存或打开文件。有没有办法绕过这个并让它在后台运行和保存?这是我尝试过的一段代码。
Set ie = CreateObject("InternetExplorer.Application")
ie.Navigate "https://pastebin.com/raw/terAweb"
State = 0
Do Until State = 4
DoEvents
State = ie.readyState
Loop
Dim file: file= ie.Document.Body.innerHTML
【问题讨论】:
标签: vba automation internet-explorer-11