gpt4 book ai didi

excel - 在单独的 Google Chrome 浏览器窗口中打开多个 URL

转载 作者:行者123 更新时间:2023-12-04 20:48:44 28 4
gpt4 key购买 nike

我有一堆链接需要每天在单独的 Google Chrome 窗口上打开
7 个链接列在 rawdata 工作表的 A 列中
我已经能够在 Excel 中创建这个 VBA 代码,它在一个 Google Chrome 窗口下打开了我需要的所有链接,每个链接都在其自己的单独选项卡上打开。

Sub openurl()
Dim ChromeLocation As String
Dim MyURL As String
Dim i As Integer
Dim ws1 As Worksheet
Dim lastRow As Long
Range("A1").Select
lastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Set ws1 = Sheets("rawdata")
ChromeLocation = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" 'location of Chrome.exe in your PC
For i = 1 To lastRow
MyURL = ws1.Cells(i, 1)
Shell (ChromeLocation & " -url -newtab " & MyURL)
Next i
End Sub
有没有办法让链接在单独的 Google Chrome 窗口而不是单独的选项卡上打开?如果是这样,您将如何做呢?
感谢您在此问题上的时间和考虑。

最佳答案

只改变这一行

    Shell (ChromeLocation & " -new-window " & MyURL)

关于excel - 在单独的 Google Chrome 浏览器窗口中打开多个 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71458759/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com