Written by Allen Wyatt (last updated March 17, 2025)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365
Steve has a document that contains quite a few URLs. He's tested all the URLs to make sure they are valid, and the ones that are not valid he has appended with an asterisk. Now Steve would like to go back and replace all those asterisks with a footnote that simply says, "No longer there." He wonders if there is an easy way to do this for all the asterisks in the document.
There are two ways to approach this. The first relies on using Find and Replace. You can follow these general steps:
What you end up with is all the asterisks replaced with the footnotes. Realize that all of the asterisks in your document are replaced. If you have some asterisks that you don't want replaced, then you can step through matches and replace or not replace them individually.
The other way you can approach the issue is by using a macro. This is particularly helpful if you need to make the replacements in multiple documents. The following example macro searches through the document for asterisks, then deletes the asterisks and inserts the desired footnote.
Sub ReplaceAsterisksWithFootnotes() Dim rng As Range Set rng = ActiveDocument.Content With rng.Find .Text = "*" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = 0 .MatchCase = 0 .MatchWholeWord = 0 .MatchWildcards = 0 .MatchSoundsLike = 0 .MatchAllWordForms = 0 End With Do While rng.Find.Execute rng.Delete ActiveDocument.Footnotes.Add Range:=rng, Text:="No longer there." Loop End Sub
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 (9744) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365.
Do More in Less Time! An easy-to-understand guide to the more advanced features available in the Microsoft 365 version of Word. Enhance the quality of your documents and boost productivity in any field with this in-depth resource. Complete your Word-related tasks more efficiently as you unlock lesser-known tools and learn to quickly access the features you need. Check out Microsoft 365 Word For Professionals For Dummies today!
Hidden text is a great boon if you want to make sure something doesn't show up on the screen or on a printout. If you ...
Discover MoreMacros are created for all sorts of purposes in creating, editing, and processing documents. You might want to use a ...
Discover MoreWhen working with documents (particularly those prepared by others) it is not unusual to need to count words that possess ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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