我有一些 VBA 代码可以从网上获取股票价格。我的代码使用 InternetExplorer 对象/文档来执行此操作。但是,如果可能的话,我想改用 Microsoft Edge 对象/文档。
在我当前的代码中:
我初始化一个 InternetExplorer 变量:Dim ie As InternetExplorer
然后我创建一个对象:Set ie = CreateObject("InternetExplorer.Application")
我想知道是否可以在我的代码中使用 Microsoft Edge 而不是 Internet Explorer 对象/文档。先感谢您。
不幸的是 Edge 没有 VBA 可以使用的 API。
IE 将继续工作。
Sources:
MSDN 社交 https://social.msdn.microsoft.com/Forums/vstudio/en-US/148d9639-0747-41bc-82b5-1469ff5bd1b5/excel-vba-coding-switching-from-internet-explorer-to-microsoft-edge?forum=iewebdevelopment
SO https://stackoverflow.com/questions/31784247/switching-from-internet-explorer-to-microsoft-edge
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)