Bill likes using smart quotes, but there are times when straight quotes should be used. He wonders if there is a way to change all quote marks or apostrophes to non-smart versions if they immediately follow a digit.
This can be done using a wild card search in Word. The key, though, is that before searching you need to make sure that you turn off Word's smart quote feature. If you don't, then when making a replacement, Word may turn your straight quote (the replacement text) into a smart quote automatically. To do that, follow these steps:

Figure 1. The AutoFormat As You Type tab of the AutoCorrect dialog box.
Now you are ready to do your actual finding and replacing:

Figure 2. The Replace tab of the Find and Replace dialog box.
This sequence of steps works because of the patterns you use in steps 4 and 5. Step 4 means that you want to find any digit ([0-9]) followed by a character having the ANSI code 0146 or 0146. These two codes are used for opening (0146) or closing (0147) smart apostrophes. In step 5, you are replacing what is found with the digit that was found (\1) followed by an apostrophe. Since you previously turned off smart quotes, this replacement is a straight apostrophe.
You can now do another find and replace, but this time for double quotes (quote marks). The only difference in the steps is that you need to use this as your search string in step 4:
([0-9])[^0147^0148]
This search pattern uses the ANSI codes for open (0147) or closing (0148) smart quote marks. For your replacement pattern, in step 5, use this:
\1"
Note that the only difference is that you've swapped out the apostrophe for a regular quote mark.
There is one thing to be aware of in performing the replacement steps outlined above—all instances of the Find What pattern are replaced. If you believe that there are any possible instances in your document where a digit is correctly followed by a smart apostrophe or smart quote, then you'll want to use the controls in the Find and Replace dialog box to steps through the matching instances and make replacements only as necessary.
When you are done with your replacements, you can again go through the steps at the beginning of this tip to turn automatic smart quotes back on. The only difference in the steps is that you select the Straight Quotes with Smart Quotes check box in step 5.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13998) 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!
When you use Word's Find and Replace capability, clicking the Replace button performs the replacement and automatically ...
Discover MoreContractions are a common part of writing, and editors may be charged with removing or minimizing their use in a ...
Discover MoreThe Find and Replace capabilities of Word are very powerful, but they still come up a bit short when searching for some ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-09-01 05:42:34
jamies
beepee,
Thanks for the correction.
My comment was in the expectation that Allen would correct the post
so any later presentation would be accurate.
2026-08-31 11:22:54
beepee
Allen is usually quite precise and accurate with his Word.Tips. However, I think maybe he was either travel weary or suffering pre travel stresses. :)
In the paragraph following the second Step 7:
…followed by a character having the ANSI code 0146 or 0146. These two codes are used for opening (0146) or closing (0147) smart apostrophes. In step 5, you are replacing what is…
I think I can safely say this is muddled!
ANSI code 145 = an opening smart apostrophe
146 = a closing smart apostrophe
147 = an opening smart quotation mark
And 148 = a closing smart quotation mark
Therefore the codes in the above para should read…
… having the ANSI code 0145 or 0146. These two codes are used for opening (0145) or closing (0146) smart apostrophes…
After this all seems to be good.
Just in case anyone needs... ANSI code for plain quotation mark is 034 ( " )
and for a plain apostrophe is 039 ( ' )
2026-08-29 07:46:17
jamies
Confused -
)[^0145^0146]
finds 146 or 146
And if
)[^0145^0146]
found them, why look for
0146 and 0147
0147 and 0148
And - if there are smart characters - why not copy and paste them into the replace ?
Also for times when a small number of entries need to be retained as the standard character use Ctrl+Z immediately after the standard keyboard entry of the not-smart characters -
a pretty standard way of getting the conversion to smarties to be undone !
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 © 2026 Sharon Parq Associates, Inc.
Comments