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.
Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2021 or Microsoft 365. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word Step by Step today!
The Find and Replace capabilities of Word are quite powerful. Knowing how to find and replace highlighted text can be a ...
Discover MoreThe Find and Replace capabilities of Word are very powerful, allowing you to accomplish more than one task at a time. ...
Discover MoreFinding and replacing text when the text being searched for has mixed formatting can be a challenge. You may, however, ...
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