我在Excel中有超過100個鏈接,我想在Internet Explorer中逐一打開它們。分配給我的計算機有點慢,這就是爲什麼只需在Internet Explorer的一個選項卡中打開鏈接的原因。從excel逐個打開鏈接到Internet Explorer
我想:從A1
1.複印鏈接,將其粘貼到Internet Explorer。
2.等待頁面完全加載。
3.從A2複製鏈接,粘貼到Internet Explorer(相同的選項卡,不打開 新選項卡)。
4.等待頁面完全加載。
5.重複步驟,直到帶有鏈接的「A」的最後一個單元格。
在下面的代碼中,我可以導航從A1的鏈接。你怎麼能循環它,它會從導航小區1到小區X
Sub OpenInAnotherBrowser()
Dim iePath As String
Dim browser As String
Dim URL As String
iePath = "C:\Program Files\Internet Explorer\iexplore.exe"
If Dir(iePath) = "" Then pathie = "C:\Program Files\Internet Explorer\iexplore.exe"
URL = ActiveSheet.Range("A1").Value
If Dir(iePath) = "" Then
If MsgBox("IE Not Found, Open with default browser?", vbQuestion + vbYesNo) = vbYes Then
Application.FollowHyperlink URL
Exit Sub
End If
End If
Shell """" & iePath & """" & URL, vbHide
End Sub
似曾相識?我確信我在上週左右看到了這個完全相同的問題。 – YowE3K
我編輯了代碼。有點相同的問題。 – carlosng07