【发布时间】:2016-06-13 12:53:02
【问题描述】:
我需要在 Google chrome 浏览器的同一选项卡中打开两个链接。下面是我尝试过的代码,但在 Browser = Shell(Chromepath & "-url URL1") 行中出现“找不到文件”错误。打开第一个 URL(登录页面)后,它应该导航到同一选项卡中的第二个 URL。
Sub Defects()
Dim ExtractliveApp As Variant
Dim Browser As Variant
Dim URL As Variant
URL1 = "go/ExtractliveApp"
URL2 = "https://Extract.live.com/SelfServiceExtracts"
Chromepath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
Browser = Shell(Chromepath & "-url URL1")
Browser = Shell(Chromepath & "-url URL2")
End Sub
【问题讨论】:
标签: vba excel google-chrome