跳到主要内容

如何删除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 删除所有超链接

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”,但是当我们输入空格或按空格键时,超链接将自动添加到文本中。 输入 后面的文字如下图所示。 在这种情况下,我们需要配置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  /  将页面导出为图像  /  一次打印多个文件...

内容编辑: 批量查找和替换 跨多个文件  /  调整所有图片的大小  /  转置表行和列  /  将表格转换为文字...

🧹 轻松清洁: 移开 多余的空间  /  分节符  /  所有标题  /  文本框  /  超链接  / 如需更多拆卸工具,请前往我们的 删除组...

创意插入: 插 千位分隔符  /  复选框  /  单选按钮  /  扫码支付  /  条码  /  对角线表  /  公式标题  /  图片说明  /  表标题  /  多张图片  / 发现更多 插入组...

🔍 精准选择:精确定位 特定页面  /    /  形状  /  标题段落  / 增强导航功能 更多 选择功能...

星级增强: 快速导航至任何位置  /  自动插入重复文本  /  在文档窗口之间无缝切换  /  11 转换工具...

👉 想尝试这些功能吗? Kutools for Word 提供了 60-day免费试用,没有任何限制! 🚀
 
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