假設您的工作表中有多個網址，但它們沒有鏈接，現在您需要將所有未鏈接的網址轉換為可點擊的超鏈接，如下圖所示。 當然，您可以一個一個地點擊它們以使它們可點擊，但是如果有很多網址，這會很耗時。 你怎麼能在Excel中自動將多個未鏈接的URL轉換為可點擊的超鏈接？
同 Kutools for Excel“ 轉換超鏈接 實用程序可以幫助您快速從超鏈接中提取實際的url地址，並將多個純文本轉換為超鏈接。
Kutools for Excel：比200方便的Excel加載項，可以在60天免費試用。 下載並免費試用現在！
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，並且選定的未鏈接的網址已轉換為可點擊的超鏈接。 查看屏幕截圖：
同 Kutools for Excel's 刪除超鏈接 功能，您可以根據需要從所選範圍，工作表或整個工作簿中刪除所有超鏈接。
也許，VBA代碼對你來說有些困難，在這裡，我可以向你介紹一個多功能工具 - Kutools for Excel，其 轉換超鏈接 功能，您可以快速處理以下操作：
|Kutools for Excel : 與超過300方便的Excel加載項，在60天免費試用沒有限制.|
如果你已經安裝 Kutools for Excel請按照以下步驟進行：
2。 點擊 Kutools > 鏈接 > 轉換超鏈接，看截圖：
3。 在 轉換超鏈接 對話框中選擇 單元格內容替換超鏈接地址，然後點擊 按鈕 結果範圍 指定一個單元格來放置結果。
4。 然後點擊 OK，所有選定的純文本鏈接都已轉換為可點擊的超鏈接。 看截圖：
1。 如果您想將實際地址放在原始範圍內，請檢查 轉換源範圍.
2。 如果超鏈接與當前文檔鏈接，請檢查 超鏈接是本文檔中的一個地方 選項。
點擊 轉換超鏈接 了解更多關於這個功能。
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 2 months agoOh 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.· 10 months agohi
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.· 10 months agoHello, Babu,
May be the below article can help you for solving your problem, please view it:
Hope it can help you!
To post as a guest, your comment is unpublished.· 11 months agoI 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.· 1 years agoThis is very helpful...Thanks
To post as a guest, your comment is unpublished.· 1 years agoThis is Great! Worked like a charm
To post as a guest, your comment is unpublished.· 3 years agoMan! 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.· 3 years agoThanks a lot my friend! it worked! :lol:
To post as a guest, your comment is unpublished.· 3 years agoThe 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.
To post as a guest, your comment is unpublished.· 4 years agoI 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.· 4 years agoI 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.· 5 years agogreat job my friend!!!!!!! too good
To post as a guest, your comment is unpublished.· 5 years agoWhy 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.· 5 years agoyou are great!!!
Thanks a lot thank you thank you thank you!!!!! :lol: :D :-)