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 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 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 MoreThe Find and Replace capabilities of Word are quite powerful. One type of replacing may not seem possible at ...
Discover MoreWord allows you to format text so it can be easily hidden from view and from printing. If you want to convert the hidden ...
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