Written by Allen Wyatt (last updated December 16, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365
Dennis has a small macro that does a great job of removing hyperlinks from within a document. He just received a new document to work with, and it has quite a few hyperlinks in footnotes. The macro doesn't remove these hyperlinks, and removing them manually is a huge chore. Dennis wonders if there is a way to remove hyperlinks in footnotes all at once.
Actually, there is a way. You can manually do it, if you desire, by following these steps:
You should note that these steps actually convert all fields in the selected text into regular text. Since hyperlinks are implemented through the use of fields, they are converted. But, so are any other fields that may be in your footnotes. If you don't want to change other fields, or if you have a need to deal with hyperlinks in footnotes quite a bit, you may want to, instead, use a macro.
The following macro will get rid of hyperlinks in only the footnotes:
Sub RemoveFNH() Dim h As Hyperlink With ActiveDocument If .Footnotes.Count >= 1 Then With .StoryRanges(wdFootnotesStory) For Each h In .Hyperlinks h.Delete Next h End With End If End With End Sub
Note that the important part of the macro is the specification of working with the wdFootnotesStory story range. Word documents can consist of multiple story ranges, each representing a different element, such as headers, footers, footnotes, etc. If you want to remove hyperlinks from all parts of your document (which means from all of the story ranges), then you can use an even shorter macro:
Sub RemoveAllHyperlinks() Dim r As Range Dim h As Hyperlink For Each r In ActiveDocument.StoryRanges For Each h In rng.Hyperlinks h.Delete Next h Next r End Sub
The macro steps through each of the story ranges in the document and, if there are hyperlinks in that story range, deletes each of them.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (4636) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365.
Discover the Power of Microsoft Office This beginner-friendly guide reveals the expert tips and strategies you need to skyrocket your productivity and use Office 365 like a pro. Mastering software like Word, Excel, and PowerPoint is essential to be more efficient and advance your career. Simple lessons guide you through every step, providing the knowledge you need to get started. Check out Microsoft Office 365 For Beginners today!
Need to make a cross-reference from one footnote to another footnote? You can do it if you throw bookmarks into the mix, ...
Discover MoreThe reference marks that appear for footnotes in a document are normally just superscripted digits. If you want to change ...
Discover MoreFootnotes can be a great addition to any document that needs detailed referencing of citations. You can navigate from one ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2023-12-16 09:00:00
Robert Love
In the second macro, it looks like you've written "rng" where you meant "r".
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments