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.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 365 applications with VBA programming. Written in clear terms and understandable language, the book includes systematic tutorials and contains both intermediate and advanced content for experienced VB developers. Designed to be comprehensive, the book addresses not just one Office application, but the entire Office suite. Check out Mastering VBA for Microsoft Office 365 today!
If you have a document that contains optional hyphens (special characters that mark where a word can be split between ...
Discover MoreThe Find and Replace capabilities of Word are quite powerful. One type of replacing may not seem possible at ...
Discover MoreWord may automatically indent the first line of some paragraphs within your document. If you want to replace those ...
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