从Internet Explorer切换到Microsoft Edge [英] Switching from Internet Explorer to Microsoft Edge

查看:1377
本文介绍了从Internet Explorer切换到Microsoft Edge的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近发布的Windows 10,包括新的浏览器 - 微软Edge,任何人都会知道如何通过Excel VBA打开Microsoft Edge浏览器。我已经尝试搜索网站没有任何运气。

After the recent release of Windows 10, including the new browser - Microsoft Edge - would anyone simply know how to open Microsoft Edge browser via Excel VBA. I have tried searching the website without any luck.

这是目前基本的Excel VBA编码,我用来打开Internet Explorer:

This is the current basic Excel VBA coding I use to open the Internet Explorer:

Sub xyz()

Dim Browser As SHDocVw.InternetExplorer 'Microsoft Internet Controls
Dim HTMLdoc As MSHTML.HTMLDocument 'Microsoft HTML Object Library
Dim URL As String

  URL = "http://www.bbc.co.uk/news"
  Set Browser = New InternetExplorer
    Browser.Silent = True
    Browser.navigate URL
    Browser.Visible = True
  Do
    Loop Until Browser.readyState = READYSTATE_COMPLETE

    Set HTMLdoc = Browser.document

End Sub

这是一个非常直接的VBA编码打开BBC网站。

This is a very straight forward piece of VBA coding to open the BBC website for example.

但是,打开Microsoft Edge的新代码是什么?

However, what is the new piece of coding to open Microsoft Edge?

推荐答案

根据MS 此处,IE11附带Windows 10

According to MS here, IE11 ships with Windows 10


Windows 10的默认浏览器是Microsoft Edge,由我们的新的渲染引擎提供支持,是Windows上Web的前进方向。网站开发人员应将重点放在微软边缘的新的和现有的经验。 Internet Explorer 11将包含在一些传统方案中,用户可以选择将其作为默认浏览器,如使用任何其他浏览器。

The default browser for Windows 10 is Microsoft Edge, which is powered by our new rendering engine and is our path forward for the Web on Windows. Site developers should focus their testing on Microsoft Edge for new and existing experiences. Internet Explorer 11 will be included for some legacy scenarios and users will be have the option to choose it as the default browser, like with any other browser.

所以现在的IE代码应该继续工作。没有尝试过。

So existing code for IE should continue to work. Not tried it though.

可以找到Edge上的一些技术资料 here

Some technical stuff on Edge can be found here

截至2015年8月10日,我已升级一台电脑从Win 7 Pro SP1到Win 10 Pro和您提供的代码工作正常。 IE11运行正常并显示网站。 IE11下载页面证实我已经安装了。

As of Mon 10-Aug-2015, I have upgraded one PC from Win 7 Pro SP1 to Win 10 Pro and the code you supplied works fine. IE11 runs fine and shows the website. The IE11 download page confirms that I've already got it installed.

这篇关于从Internet Explorer切换到Microsoft Edge的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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