Written by Allen Wyatt (last updated June 29, 2019)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and 2021
Word documents can contain just about any character you can think of—and many you can't. If you inherit documents from other people, or cut and paste information from other sources, it is possible to end up with characters in Word that you don't know how to identify. If you can't identify them, then it makes it very hard to search and replace them. Sometimes Word will allow you to copy the character and paste it into the Find box when searching, but you can only do this with a limited number of characters.
The answer to this conundrum is to identify, specifically, the character in question. Then you can use the special features of the Find box to locate it. The first step is to create this macro:
Public Sub GetCharASCII() MsgBox "CharCode is: " & Asc(Selection) End Sub
Next, select the single character that you have a question about and run the macro. You will see a dialog box that tells you the ASCII value of the character. For instance, let's say that the character value returned is 148. You would then use the following in the Find box:
^148
Word will now find all instances of the character in question, and you can replace it as desired.
If you still have a stubborn character that this won't work for—for instance, some Unicode characters—then a different approach is required. If you fit into this category, refer to the following article at the Word MVP site:
https://wordmvp.com/FAQs/MacrosVBA/FindReplaceSymbols.htm
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 (9041) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and 2021. You can find a version of this tip for the older menu interface of Word here: Finding an Unknown Character.
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!
If you use the arrow keys to move the insertion point through the document, you may have noticed that it can be slow ...
Discover MoreSmart quotes can be helpful in giving your document a more finished look, but you may not want them after any of the ...
Discover MoreSometimes a strange object or text may appear in your document, as happened to Sharon. To complicate the situation, her ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2021-05-12 07:46:14
Timothy Barton
This is very helpful. However, I've noticed that both the hyphen and the minus are both identified as character 45, even though both appear very differently on the screen. These are the two chracters: −-
The macro identifies both as character 45. Do you know why?
2021-02-17 10:41:11
Hi, Very good and Thanks a lot. It was a nice solution for me.
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