跳到主要內容

如何刪除Word中的所有超鏈接?

對於Microsoft Word用戶而言,刪除Word文檔中的所有超鏈接並不困難,本教程僅列出幾種可用的方法來刪除Word中的所有超鏈接。

  快速刪除當前Word文檔中的所有超鏈接

通過Word中的“刪除超鏈接”來刪除超鏈接很容易,但是刪除數十個鏈接非常耗時。 在這裡 刪除超鏈接 Kutools for Word的功能將僅需單擊一下即可刪除所有超鏈接!


廣告刪除所有超鏈接
Kutools for Word 是一款終極 Word 插件,可簡化您的工作並提高您的文件處理技能。 免費試用 60 天! 現在得到它!

推薦的Word生產工具

Kutools for Word:整合人工智慧 🤖,超過 100 種進階功能可節省 50% 的文件處理時間。免費下載

Office Tab:在 Word(和其他 Office 工具)中引入類似瀏覽器的選項卡,簡化了多重文件導覽。免費下載


  使用“刪除超鏈接”功能逐一刪除超鏈接

此方法將指導您通過“刪除超鏈接”功能刪除超鏈接,然後在Word中一次又一次地刪除其他鏈接。

1。 右鍵單擊將刪除其超鏈接的指定鏈接文本,然後選擇 刪除超鏈接 從上下文菜單中。 看截圖:
doc刪除超鏈接右鍵單擊01
現在,超鏈接立即從指定的鏈接中刪除。

2。 重複上述操作,以在Word中一一刪除超鏈接。

以這種方式刪除超鏈接很容易,但是手動刪除文檔中的所有超鏈接將花費大量時間。


  通過快捷方式刪除當前文檔中的所有超鏈接

許多人更喜歡使用快捷方式,因為它們既簡單又節省時間。 快捷鍵可用於刪除所有超鏈接,而您不必擔心文檔太長。

1。 按 按Ctrl + A 同時選擇整個文檔。

2.下次按 按Ctrl + 轉移 + F9 同時刪除當前文檔中的所有超鏈接。

注意:
快捷方式方法將刪除所有基礎字段。


  使用VBA刪除當前文檔中的所有超鏈接

Office Tab -選項卡式瀏覽和編輯多個Word文檔,例如Firefox,Chrome,Internet Explore 10! 立即獲取!
廣告辦公室標籤詞

您可以使用以下VBA輕鬆刪除當前Word文檔中的所有超鏈接。

1。 按 Alt + F11鍵 鍵打開 Microsoft Visual Basic應用程序 窗口。

2。 點擊 插入 > 模塊,然後將以下VBA代碼複製並粘貼到“模塊”窗口中。

VBA 1:刪除當前文檔的所有超鏈接

Sub KillTheHyperlinks()
' -----------------------------------------------
' Removes all hyperlinks from the document:
' Text to display is left intact
' -----------------------------------------------
With ThisDocument
' Loop while there are hyperlinks afoot!
While .Hyperlinks.Count > 0
.Hyperlinks(1).Delete
Wend
End With
' Shut this off, don't need anymore popping up
Application.Options.AutoFormatAsYouTypeReplaceHyperlinks = False
End Sub

3。 然後點擊 按鈕或按F5鍵運行腳本。

現在,您將立即刪除當前Word文檔中的所有超鏈接。


 使用VBA刪除所有打開的Word文檔中的所有超鏈接

與第一個VBA代碼僅刪除當前文檔中的所有超鏈接不同,第二個VBA代碼允許您刪除所有打開的文檔中的所有超鏈接。

1。 按 Alt + F11鍵 鍵打開 Microsoft Visual Basic應用程序 窗口。

2。 點擊 插入 > 模塊,然後將以下VBA代碼複製並粘貼到“模塊”窗口中。

VAB 2:刪除所有打開的Word文檔中的所有超鏈接

Sub KillTheHyperlinksInAllOpenDocuments()
' -----------------------------------------------
' Removes all hyperlinks from any open documents
' Text to display is left intact
' -----------------------------------------------
Dim doc As Document
Dim szOpenDocName As String

' Loop through all open documents:
For Each doc In Application.Documents
' Store the document name
szOpenDocName = doc.Name
' Remove the hyperlinks from that document
With Documents(szOpenDocName)
' Loop while there are hyperlinks afoot!
While .Hyperlinks.Count > 0
.Hyperlinks(1).Delete
Wend
End With
' Shut this off, don't need anymore popping up
Application.Options.AutoFormatAsYouTypeReplaceHyperlinks = False
Next doc
End Sub

現在,您將看到所有打開的Word文檔中的所有超鏈接被立即刪除。


  使用Kutools for Word刪除所有超鏈接

這款獨特的敏感免洗唇膜採用 Moisture WrapTM 技術和 Berry Mix ComplexTM 成分, Kutools for Word刪除超鏈接 實用程序,您可以快速從整個文檔或文檔的選定部分中刪除所有超鏈接。

Kutools for Word 是一款終極 Word 插件,可簡化您的工作並提高您的文件處理技能。 免費試用 60 天! 現在得到它!

1。 點擊 庫工具 > 清除 > 刪除超鏈接。 看截圖:
doc刪除超鏈接ktw 01

2。 在彈出的刪除對話框中,請點擊 OK 按鈕,請參見屏幕截圖:
doc刪除超鏈接ktw 02

然後將出現一個對話框,告訴您已刪除了多少個超鏈接。 只是關閉它。
doc刪除超鏈接ktw 03
您將看到從當前Word文檔中刪除了所有超鏈接,如下所示的屏幕截圖:
doc刪除超鏈接ktw 04

刪除超鏈接 Kutools for word的功能將刪除文本中的所有鏈接,但保留文本和格式樣式。 免費試用!


 停止自動將超鏈接添加到Word中的文本

例如,您已從“ https:// www。”文本中刪除了超鏈接。extendoffice.com”,但是當我們輸入空格或按空格鍵時,超鏈接將自動添加到文本中。 Enter 後面的文字如下圖所示。 在這種情況下,我們需要配置Word選項,並停止自動向Word中的文本添加超鏈接。

1。 點擊 文件 > 選項 在Word中。

2。 在“ Word選項”對話框中,請單擊 打樣 在左欄中,然後單擊 自動更正選項 按鈕。 看截圖;

3。 在“自動更正”對話框中,請啟用 鍵入時自動套用 標籤,取消選中 具有超鏈接的Internet和網絡路徑 選項,然後單擊 OK 按鈕。 看截圖:

4。 點擊 OK Word選項對話框中的按鈕。

從現在開始,Word將不再自動將超鏈接添加到特殊文本,例如網站路徑。


最佳辦公生產力工具

Kutools for Word - 透過 Over 提升您的文字體驗 100 顯著特點!

🤖 Kutools 人工智慧助手:用人工智慧改變你的寫作 - 生成內容  /  重寫文字  /  總結文件  /  查詢資料 基於文檔,全部在Word中

📘 文件掌握: 分頁  /  合併文件  /  以各種格式匯出選擇(PDF/TXT/DOC/HTML...)  /  批次轉換為PDF  /  將頁面匯出為圖像  /  一次列印多個文件...

內容編輯: 批量查找和替換 跨多個文件  /  調整所有圖片的大小  /  轉置表行和列  /  將表格轉換為文字...

🧹 輕鬆清潔: 移開 多餘的空間  /  分節符  /  所有標題  /  文本框  /  超鏈接  / 如需更多拆卸工具,請前往我們的 刪除組...

創意插入: 插入 千位分隔符  /  複選框  /  單選按鈕  /  QR Code  /  條碼  /  對角線表  /  公式標題  /  圖片說明  /  表格標題  /  多張圖片  / 發現更多 插入組...

🔍 精準選擇:精確定位 特定頁面  /    /  形狀  /  標題段落  / 增強導航功能 更多 選擇功能...

星級增強: 快速導航至任何位置  /  自動插入重複文字  /  在文檔視窗之間無縫切換  /  11 轉換工具...

???? 想嘗試這些功能嗎? Kutools for Word 提供了 60天免費試用,沒有任何限制! 🚀
 
Comments (58)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Note that, as it says, in Word, ctrl-A ctrl-shift-F9 removes ALL underlying fields. Fields are used for more than just hyperlinks. You can really mess up your document if it has more than simple hyperlink fields in it.
This comment was minimized by the moderator on the site
[code xml="Alexa,Stop"]
This comment was minimized by the moderator on the site
1. Select all text in the word document by -------- Ctrl+A2. Then, click Ctrl+shift+F9All hyperlinks will be deleted.
This comment was minimized by the moderator on the site
I can't thank you enough. Thanks for availing the public with this info.
This comment was minimized by the moderator on the site
I used the vba code to remove all hyperlinks in my current file. It worked like a charm!
But is there a way to save code to my personal macro file and use for any file I need to remove all hyperlinks [only for current file, not all opening files]?
This comment was minimized by the moderator on the site
Solved my problems, thanks for the code. I added some exceptions into the code as some hyperlinks are reused everytime.
This comment was minimized by the moderator on the site
"Press “Ctrl-Shift-F9”." This is not useful for those without function keys. Please refer to menu items also. Thank you!
This comment was minimized by the moderator on the site
mac os: "CMD+SHIFT+FN+F9"
This comment was minimized by the moderator on the site
Thanks a lot. it works.
This comment was minimized by the moderator on the site
you are a savior.
thanks a lot ,thanksssss...
This comment was minimized by the moderator on the site
great help! thanks
This comment was minimized by the moderator on the site
Great ! Thank you very much !
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