3
我在Excel电子表格中有两个按钮。当我点击button1时,Chrome会启动一个新标签,但当点击button2时,Chrome会打开另一个标签。如何使用Excel在打开的Chrome选项卡中打开新URL而不打开新选项卡
我想要的是,当我点击button2时,用button1打开的Chrome标签将通过刷新第一个标签中的URL来访问button2的URL,而不是创建一个新标签。谢谢!
Private Sub Button1_Click()
chromePath = """C:\Program Files\Google\Chrome\Application\chrome.exe"""
Shell (chromePath & " -url http:abc.com")
End Sub
Private Sub CommandButton2_Click()
chromePath = """C:\Program Files\Google\Chrome\Application\chrome.exe"""
Shell (chromePath & " -url http:def.com")
End Sub