跳到主要內容

如何在Excel中一次打開多個超鏈接?

如果電子表格中有很多超鏈接,通常您必須一一打開它們,這可能很乏味。幸運的是,有一些簡單的方法可以一次打開所有選定的超連結。透過遵循下面描述的方法,您可以輕鬆完成此任務。


使用VBA代碼一次打開多個超鏈接

要一次打開選定的某個範圍的超鏈接,以下VBA代碼可以為您提供幫助:

1。 按住 ALT + F11 鍵,然後打開 Microsoft Visual Basic for Applications窗口。

2。 點擊 插入 > 模塊,然後將以下代碼粘貼到 模塊窗口.

VBA代碼:一次打開多個超鏈接

Sub OpenHyperLinks()
'Updateby Extendoffice
	Dim xHyperlink As Hyperlink
	Dim WorkRng As Range
	On Error Resume Next
	xTitleId = "KutoolsforExcel"
	Set WorkRng = Application.Selection
	Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
	For Each xHyperlink In WorkRng.Hyperlinks
		xHyperlink.Follow
	Next
End Sub

3。 然後按 F5 鍵運行此代碼,然後會彈出提示框,提醒您選擇一個範圍,其中包括您想一次打開的超鏈接,請參見屏幕截圖:

文檔打開多個超鏈接-1

4。 然後點擊 OK,無需單擊即可同時打開所有超鏈接。


使用 Kutools AI Aide 一次開啟多個超鏈接

釋放效率的力量 Kutools 人工智慧助手!告別一一打開超連結或複雜程式碼的麻煩。和 Kutools 人工智慧助手,只需單擊即可輕鬆同時開啟多個超連結。利用這項創新工具簡化您的工作流程並節省寶貴的時間。體驗無縫瀏覽並提高您的工作效率 Kutools 人工智慧助手 今天!

備註: 要使用這個 Kutools 人工智慧助手 of Excel的Kutools下載並安裝 Kutools for Excel 第一。

安裝Kutools for Excel之後,請點擊 Kutools人工智慧 > 人工智慧助手 打開 Kutools 人工智慧助手 窗格:

  1. 選擇資料列表,然後在聊天框中輸入您的需求,然後按一下 送出 按鈕或按下 Enter 發送問題的按鍵;
    “一次打開所選內容中的所有超連結:”
  2. 分析完後點擊 執行 按鈕運行。 Kutools AI Aide 將使用 AI 處理您的請求,並直接在 Excel 中開啟所選內容的所有超連結。

文檔打開多個超鏈接-1


相關文章:

  • 在 Excel 中一次變更多個超連結路徑
  • 出於某種目的,您可以為工作表中的數據創建多個超鏈接,並且所有超鏈接都鏈接到相同的文件路徑或地址,但是現在,您需要一次用另一個地址替換該超鏈接路徑。 單獨更改超鏈接的路徑可能會浪費大量時間,是否有解決此問題的快速方法?
  • 將多個電子郵件地址轉換為Excel中的超鏈接
  • 現在,如果您在工作表中具有純文本電子郵件地址列表,則希望將這些電子郵件地址轉換為可在單擊地址時發送電子郵件的超鏈接。 當然,您可以將它們轉換為超鏈接的電子郵件地址,但是,如果需要轉換多個地址,此方法將很無聊。 在本文中,我將討論一些處理此任務的好技巧。
  • 透過超連結存取 Excel 中的隱藏工作表
  • 例如,我有一個包含多個工作表的工作簿,第一個主工作表具有指向其他工作表的超鏈接,現在,我隱藏了除第一個工作表之外的所有工作表。在這種情況下,連結到隱藏工作表的超連結不可用。但是,如何才能使這些超連結成功運作呢?當您按一下超連結時,連結的隱藏工作表將立即開啟。

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (20)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thanks for the code.
Could make it work for a "https link instead a hyperlink?
This comment was minimized by the moderator on the site
Got a compile error on Microsoft Visual Basic for Applications 7.1 on Mac High Sierra
This comment was minimized by the moderator on the site
This works fine, except for a problem, how can I make it that it only opens filtered cells?

Thank you
This comment was minimized by the moderator on the site
Can i select which browser the links need to open
This comment was minimized by the moderator on the site
Hi, it worked perfectly, thanks! Is there a way to copy the text from the pages of these links in the cell next to each of them?
That would save me hundreds of hours of work!
This comment was minimized by the moderator on the site
Its works awesome.
This comment was minimized by the moderator on the site
When I use this on a column of hyperlinks generated by the =HYPERLINK() formula, it doesn't seem to work. When I copy/paste the values into a new column and run it there, it doesn't work. When I go to each individual cell, go to the end of text, and hit enter (causing it to become a hyperlink) it DOES work.


This didn't work for my needs, unfortunately. I have thousands of rows and clicking enter at the end of each line of text is pretty much what I'm having to do anyway.
This comment was minimized by the moderator on the site
Found a solution?
This comment was minimized by the moderator on the site
@James @Johan - Select the text you wish to convert into hyperlink, then use this code to convert the text into hyperlink directly. Then run the code above, works like a charm.


Sub HyperAdd()

'Converts each text hyperlink selected into a working hyperlink

For Each xCell In Selection
ActiveSheet.Hyperlinks.Add Anchor:=xCell, Address:=xCell.Formula
Next xCell

End Sub
This comment was minimized by the moderator on the site
Hello! What I did was to copy/paste the values from the =HYPERLINK code into a different column, and then I used @SimpleDude's code to convert the pasted text into the hyperlinks that worked with the original hyperlink-opening code. Thank you for the help!
This comment was minimized by the moderator on the site
Thanks!
Works exactly as expected. Must be sure that the links are already valid URLs.
I opened 15 at one time.
This comment was minimized by the moderator on the site
Freezes excel - links never open
This comment was minimized by the moderator on the site
Please let me know hpw does it work in Mac
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations