【发布时间】:2016-06-15 04:11:07
【问题描述】:
我知道你可以做到
Sub Chrome()
Dim chromePath As String
chromePath = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"""
Shell (chromePath & " -url https://www.google.com")
Shell (chromePath & " -url path")
Shell (chromePath & " -url path")
Shell (chromePath & " -url path")
Shell (chromePath & " -url path")
End Sub
但如果我事先不知道超链接或 URL'¿s,我就无法在代码中真正写出它们,我确实有带有超链接的单元格,我正在努力实现能够选择 X 数量的单元格并在 Chrome 的不同选项卡中打开超链接。
我尝试了一些类似于
的愚蠢方法Sub Open_HyperLinks()
Dim chromePath As String
chromePath = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"""
Dim hl As Hyperlink
On Error Resume Next
For Each hl In Selection.Hyperlinks
Shell (chromePath & " -url hl")
Next hl
End Sub
当然没用……
【问题讨论】:
标签: vba excel google-chrome hyperlink