提示:其他語言是Google翻譯的。 你可以訪問 English 版本。
登入
x
or
x
x
註冊
x

or

如何將網址文本轉換為Excel中的可點擊超鏈接?

假設您的工作表中有多個網址,但它們沒有鏈接,現在您需要將所有未鏈接的網址轉換為可點擊的超鏈接,如下圖所示。 當然,您可以一個一個地點擊它們以使它們可點擊,但是如果有很多網址,這會很耗時。 你怎麼能在Excel中自動將多個未鏈接的URL轉換為可點擊的超鏈接?


將純文本轉換為可點擊的超鏈接:

Kutools for Excel轉換超鏈接 實用程序可以幫助您快速從超鏈接中提取實際的url地址,並將多個純文本轉換為超鏈接。

Kutools for Excel:比200方便的Excel加載項,可以在60天免費試用。 下載並免費試用現在!


箭頭藍色右泡 使用VBA代碼將網址文本轉換為可點擊的超鏈接


除了使用下面的VBA代碼之外,似乎沒有其他有效的方法來解決Excel中的這個問題。

1。 選擇要轉換為可點擊超鏈接的url文本範圍。

2。 按住 ALT + F11 鍵打開 Microsoft Visual Basic for Applications 窗口。

3。 點擊 插入 > 模塊,並將以下代碼粘貼到模塊窗口中。

Sub ConvertToHyperlinks()
'Updateby20140318
Dim Rng As Range
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 Rng In WorkRng
    Application.ActiveSheet.Hyperlinks.Add Rng, Rng.Value
Next
End Sub

4。 然後按 F5 鍵運行代碼,彈出對話框供您選擇範圍,然後單擊 OK,並且選定的未鏈接的網址已轉換為可點擊的超鏈接。 查看屏幕截圖:

 2

一次刪除所選範圍,工作表或整個工作簿的所有超鏈接:

Kutools for Excel's 刪除超鏈接 功能,您可以根據需要從所選範圍,工作表或整個工作簿中刪除所有超鏈接。

doc刪除超鏈接4


箭頭藍色右泡 使用Kutools for Excel將網址文本轉換為可點擊的超鏈接

也許,VBA代碼對你來說有些困難,在這裡,我可以向你介紹一個多功能工具 - Kutools for Excel,其 轉換超鏈接 功能,您可以快速處理以下操作:

  • 從超鏈接中提取實際地址;
  • 將網址文字轉換為可點擊的超鏈接
Kutools for Excel : 與超過300方便的Excel加載項,在60天免費試用沒有限制.

如果你已經安裝 Kutools for Excel請按照以下步驟進行:

1。 選擇要轉換為可點擊超鏈接的url文本範圍。

2。 點擊 Kutools > 鏈接 > 轉換超鏈接,看截圖:

3。 在 轉換超鏈接 對話框中選擇 單元格內容替換超鏈接地址,然後點擊 DOC-button1 按鈕 結果範圍 指定一個單元格來放置結果。

4。 然後點擊 OK,所有選定的純文本鏈接都已轉換為可點擊的超鏈接。 看截圖:

筆記:

1。 如果您想將實際地址放在原始範圍內,請檢查 轉換源範圍.

2。 如果超鏈接與當前文檔鏈接,請檢查 超鏈接是本文檔中的一個地方 選項。

點擊 轉換超鏈接 了解更多關於這個功能。

立即下載並免費試用Kutools for Excel!


箭頭藍色右泡 演示:使用Kutools for Excel將網址文本轉換為可點擊的超鏈接

Kutools for Excel:比200方便的Excel加載項,可以在60天免費試用。 下載並免費試用現在!


相關文章:

如何從Excel中的超鏈接提取實際的地址?


Kutools for Excel解決了您的大多數問題,並使您的生產率提高了80%

  • 重用: 快速插入 複雜的公式,圖表 以及你以前用過的任何東西; 加密單元格 密碼; 創建郵件列表 並發送電子郵件...
  • 超級方程式酒吧 (輕鬆編輯多行文字和公式); 閱讀佈局 (輕鬆讀取和編輯大量單元格); 粘貼到過濾範圍...
  • 合併單元格/行/列 不丟失數據; 分裂細胞含量; 組合重複的行/列...防止重複的細胞; 比較範圍...
  • 選擇複製或唯一 行; 選擇空行 (所有細胞都是空的); 超級查找和模糊查找 在許多工作簿中; 隨機選擇......
  • 精確複製 多個單元格而不更改公式參考; 自動創建參考 多張表; 插入項目符號,複選框等等......
  • 提取文本,添加文本,按位置刪除, 刪除空間; 創建和打印分頁小計; 在單元格內容和註釋之間轉換...
  • 超級過濾器 (將過濾方案保存並應用到其他工作表); 高級排序 按月/週/日,頻率等; 特殊過濾器 用粗體,斜體......
  • 結合工作簿和工作表; 根據鍵列合併表; 將數據拆分為多個表格; 批量轉換xls,xlsx和PDF...
  • 超過300強大的功能。 支持Office / Excel 2007-2019和365。 支持所有語言。 在您的企業或組織中輕鬆部署。 全功能30天免費試用。
kte tab 201905

Office選項卡為Office提供選項卡式界面,使您的工作更輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,Publisher,Access,Visio和Project。
  • 在同一窗口的新選項卡中打開並創建多個文檔,而不是在新窗口中。
  • 通過50%提高您的工作效率,每天為您減少數百次鼠標點擊!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Courtney · 2 months ago
    Oh crap.... it broke my Excel. By mistake I selected entire column and it forze for... ages!!
  • To post as a guest, your comment is unpublished.
    Babu · 10 months ago
    hi
    when i click on the hyperlink .. it wont take to me to email page ( as an Outlook or Gmail) Please support
  • To post as a guest, your comment is unpublished.
    Corey · 11 months ago
    I had to switch nearly 55,000 cells from plain text to hyperlinks. This helped me cut the time down from "the rest of my natural life" to five minutes. Thank you!
  • To post as a guest, your comment is unpublished.
    Zakir · 1 years ago
    This is very helpful...Thanks
  • To post as a guest, your comment is unpublished.
    Shawn · 1 years ago
    This is Great! Worked like a charm
  • To post as a guest, your comment is unpublished.
    Shanda · 3 years ago
    Man! This is so awesome, I've spent so long trying to find an easy way and this took seconds! Works great!!!
  • To post as a guest, your comment is unpublished.
    Swaroop! · 3 years ago
    Thanks a lot my friend! it worked! :lol:
  • To post as a guest, your comment is unpublished.
    jibbius · 3 years ago
    The code almost works, but author has left a small copy-paste error.

    You need to remove "" from the first line, and "" from the last line, and then it will work.

    Cheers.
  • To post as a guest, your comment is unpublished.
    MartyM · 4 years ago
    I wanted to do something slightly different - create words with hyperlinks to add into a website via a WYSIWYG (rather than HTML coding the whole thing)

    If you have good typing hands try:

    Command "C" the hyperlink > click to cell you want to link...
    Command "K" & paste Command "V" with text you want to hyperlink

    Repeat x n
  • To post as a guest, your comment is unpublished.
    Ruben · 4 years ago
    I do not know if it's just me or if perhaps everyone else experiencing problems with your website.
    It appears as if some of the text within your posts are running
    off the screen. Can someone else please comment and let me know
    if this is happening to them as well? This could be a issue with my web browser
    because I've had this happen previously. Kudos

    Feel free to visit my web site [url=http://culinotests.fr/news/vider-un-poulet-pour-la-premiere-fois]http://culinotests.fr/news/vider-un-poulet-pour-la-premiere-fois[/url]
  • To post as a guest, your comment is unpublished.
    Waqar · 5 years ago
    great job my friend!!!!!!! too good
  • To post as a guest, your comment is unpublished.
    Nathaniel · 5 years ago
    Why did you change it? This was a simple easy routine that worked every time. Now it is much larger and crashes Excel.
  • To post as a guest, your comment is unpublished.
    hind · 5 years ago
    you are great!!!
    Thanks a lot thank you thank you thank you!!!!! :lol: :D :-)