Changing Smart Quotes to Primes

by Allen Wyatt
(last updated August 22, 2020)

Mina's document uses smart quotes. This means that apostrophes after digits (such as 27' meaning 27 feet) need to be manually changed to prime marks. Mina wonders if there is a way, using Find and Replace, to change all apostrophes after digits to primes and all quote marks after digits to double primes.

The easiest way to do this is to follow these steps:

  1. Display the Word Options dialog box. (In Word 2007 click the Office button and then click Word Options. In Word 2010 and later versions display the File tab of the ribbon and then click Options.)
  2. At the left side of the dialog box click Proofing.
  3. Click AutoCorrect Options button. Word displays the AutoCorrect dialog box.
  4. Make sure the AutoFormat As You Type tab is displayed. (See Figure 1.)
  5. Figure 1. The AutoFormat As You Type tab of the AutoCorrect dialog box.

  6. Make sure the Straight Quotes with Smart Quotes option is cleared.
  7. Click OK to dismiss the AutoCorrect dialog box.
  8. Click OK to dismiss the Word Options dialog box.

These steps effectively turn off smart quotes, but it doesn't change any smart quotes already existing in your document. (It is step 5 that controls the option.) Now you are ready to do your find and replace operation:

  1. Press Ctrl+H. Word displays the Replace tab of the Find and Replace dialog box. (See Figure 2.)
  2. Figure 2. The Replace tab of the Find and Replace dialog box.

  3. Enter the following in the Find What box: ^#'
  4. Enter the following in the Replace With box: ^&'
  5. Make sure you aren't searching for any formatting or using any formatting in the replacement text.
  6. Click the Replace All button.
  7. Replace the contents of the Find What box with two apostrophes. (That's not a quote mark, but two actual apostrophes.)
  8. Replace the contents of the Replace With box with a single apostrophe.
  9. Click the Replace All button.

Note that in step 2 there is a trailing apostrophe, along with the same in step 3. This means you are first replacing any number followed by an apostrophe with that original number and apostrophe followed by another (a second) apostrophe. This is why you need to perform steps 6-8, to get rid of the extra apostrophe.

When done, you can repeat the same steps, but using quote marks in steps 2, 3, 6, and 7. Close the Find and Replace dialog box, and then repeat the earlier steps to turn smart quotes back on (step 5). The result is that you end up with primes instead of smart quotes (or smart apostrophes) after your digits.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (7691) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Aborting a Macro and Retaining Control

If you need to exit a macro before it is finished running, you can do it using a brute force method, or you can build in ...

Discover More

The EDATE Function

Want to figure a date a certain number of months in the future or past? The EDATE function may be just what you need for ...

Discover More

Determining the Upper Bounds of an Array

When working with variables in a macro, you may need to know the upper boundary dimension for an array. This can be ...

Discover More

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!

More WordTips (ribbon)

Hyphenating Your Document

One of the final touches you can add to a document is to hyphenate it. This allows text to flow more smoothly from line ...

Discover More

Deleting a Page

Want to delete the current page? There is no automatic command to perform this task in Word, but you can create your own ...

Discover More

Splitting the Window

Need to work on two different portions of the same document? The solution is to split Word's document window as described ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 9 - 0?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.