简体   繁体   English

使用Internet Explorer在一个窗口中打开多个超链接

[英]Open multiple hyperlinks in one window using Internet Explorer

I'm using the following code to open several Hyperlinks in multiple tabs from excel in one window: 我正在使用以下代码在一个窗口中从excel打开多个选项卡中的几个超链接:

Sub Open_Hyperlinks()
Range("C10:C17").Select
Dim hl as Hyperlink
On Error resume next
for Each hl in selection.Hyperlinks
hl.Follow
Next hl
End Sub

But I would like to include a specific instruction to open the hyperlinks using Internet Explorer and not the default browser setup in my terminal due to the fact that for administrator permissions I'm not able to change it. 但是,我想包含一条特定的指令,以便使用Internet Explorer而不是终端中的默认浏览器设置来打开超链接,原因是我无法更改管理员权限。

Do you know how to include that instruction? 您知道如何包含该说明吗?

您可以尝试直接致电Internet Explorer:
Call Shell("C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe -url " & hl. Address ,vbMaximizedFocus)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM