2016-01-06 838 views
1

我有一些VBA代码,从网上拉股价。我的代码使用InternetExplorer对象/文档来执行此操作。但是,如果可能的话,我想使用Microsoft Edge对象/文档。是否可以在VBA中创建和使用Microsoft Edge变量/对象?

在我当前的代码:

  1. 我初始化的InternetExplorer变量:Dim ie As InternetExplorer

  2. 然后,我创建了一个对象:Set ie = CreateObject("InternetExplorer.Application")

我想知道是否有可能在我的代码中使用Microsoft Edge而不是Internet Explorer对象/文档。先谢谢你。

+0

从这里开始:https://msdn.microsoft.com/en-us/library/hh772401%28v=vs.85%29.aspx? f = 255&MSPPError = -2147217396 –

+0

[Microsoft Edge是否支持COM自动化(InternetExplorer对象)?](http://support.microsoft.com/kb/31302304/will-microsoft-edge-support-com-automation-internetexplorer-目的) –

回答

1

不幸的是Edge没有API VBA可以使用。

IE将继续工作。

来源:

MSDN Social

SO

相关问题