是否可以在VBA中创建和使用Microsoft Edge变量/对象? [英] Is it possible to create and use a Microsoft Edge variable / object in VBA?

查看:2320
本文介绍了是否可以在VBA中创建和使用Microsoft Edge变量/对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些VBA代码可以从网上获取股票价格.我的代码使用InternetExplorer对象/文档来执行此操作.但是,如果可能的话,我想改用Microsoft Edge对象/文档.

I have some VBA code that pulls stock prices from the web. My code uses an InternetExplorer object / document to do so. However, if possible, I would like to use a Microsoft Edge object / document instead.

在我当前的代码中:

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

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

Then I create an object: Set ie = CreateObject("InternetExplorer.Application")

我想知道是否可以在代码中使用Microsoft Edge代替Internet Explorer对象/文档.预先谢谢你.

I'm wondering if it is possible to use a Microsoft Edge instead of Internet Explorer object / document in my code. Thank you in advance.

推荐答案

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

Unfortunately Edge doesn't have an API VBA can use.

IE将继续工作.

来源:

SO

这篇关于是否可以在VBA中创建和使用Microsoft Edge变量/对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆