Word: Replace text in quotes with bold text

May 14, 2008

A word of warning about this procedure: If your document contains programming code that uses quote marks, you shouldn’t use this method without trying it on a copy first.

Occasionally I’ve received a Word document that has all the field names enclosed in quotation marks. My preferred typographic style for field names is bold, no quotes. Which means that I have a lot of find/replace actions to do in a long document. I can’t write or record a macro as I might replace legitimate quotation marks, especially single quotes used for apostrophes.

I knew that Word had some powerful wildcard/regular expression functions in its Find/Replace function, but they are very hidden and they’re not something I’ve needed to learn. However, when faced with a 50 page document (small compared to others I’ve received) peppered with field names enclosed in quote marks, it was time to bite the bullet!

Word’s Help, particularly the Help that goes out to the Microsoft website (I hate that!), is difficult to navigate unless you know what you’re looking for, so I turned to one of my favourite websites: the Word MVPs site (http://word.mvps.org). I found what I was looking for here, but there was a critical step missing.

So here are my steps for removing single quotes surrounding a field name and formatting the enclosed text with bold. I’ve adapted these steps from those provided on the MVPs site:

  1. Open the AutoCorrect Options:
    * Word 2003: From the menu, select Tools > AutoCorrect Options.
    * Word 2007: Click the large Microsoft button in the top left, click Word Options, click Proofing, then click the AutoCorrect Options button in the AutoCorrect options section.
  2. Go to the AutoFormat As You Type tab.
  3. In the Replace as you type section (at the top), select the “Straight” quotes with “smart quotes” check box, then click OK. This is essential—you can change it back later if you always keep it turned off, but this check box must be on when you are doing the Find/Replace.
  4. Open the Find and Replace window (press Ctrl+H, or select Edit > Replace from the menu).
  5. Type in the Find what field.
  6. Type in the Replace with field.
  7. Click Replace All. Yes, you’re replacing the quote mark with itself. What this does is replace all the straight quote marks throughout your document with curly ones (smart quotes), including your apostrophes. You can always switch the apostrophes back to straight quotes later by repeating the steps above (don’t forget to clear the check box at step 3).
  8. Put your cursor in the Find what field, delete the existing quote mark, then type (‘)(*)(’). CRITICAL: The opening and closing quote marks MUST be smart quote marks, so you’ll have to copy/paste them from the document into the Find What field to make sure you have the correct ones. Don’t accidentally copy any preceding or trailing spaces.
  9. Select the Use wildcards check box. If you can’t see this check box, click the More button.
  10. Go to the Replace with field, delete the quote mark, and type \2. (No, I don’t know what \2 means either, and it must be REALLY hidden in the Microsoft Help as I can’t find it there either, and a Google search brings up too many spurious results.)
  11. Click the Format button, then select Font.
  12. Select Bold, then click OK.
  13. Back on the Find and Replace window, click Replace All. Everything that was enclosed in single quotes is now bold and the quotes have been removed.
  14. If you really like using straight quotes, don’t forget to turn them back on!

[steps updated to incorporate Word 2007, 21 August 2008]


  1. This is indeed a very useful tip. I was wondering if you know how to do the opposite, i.e. replace bold formatting with quotes or sth else (HTML tags for example). I tried searching for \2 and replacing it with the above mark-up, but it is not valid apparently.

    However, I think I discovered what that mysterious \2 stands for: When you use wildcards inside parantheses you define certain items. These are numbered by order of appearence, e.g. you typed (‘)(*)(’) so you had 3 items.
    ‘ is \1
    * is \2
    ’ is \3
    Try typing different numbers and see it in action.


  2. @Synthage – I tried a couple of obvious methods, none of which worked. And not being into things like Regular Expressions and the like, and not having a lot of time, I couldn’t come up with a solution. However, if you wanted to convert your entire Word document to *clean* HTML, then take a look at this post of mine from earlier this year:

  3. Thanks a million! This worked perfectly. I would have to do this manually on this user guide I’m working on. Keep up the good work!

  4. I’m afraid that this did not work for me. I am trying to replace everything that is within ” with bold text. It bolded all the text, not just that inside the speech marks, and then when I clicked out of the Replace window, it took it all off! Thanks anyway.

  5. THANK YOU SO MUCH, I’ve looked for a gabillion aeons (okay I may be slightly exaggerating) to find a way to replace text that’s marked up as *emphasis* with italics, when asterisks are themselves a wildcard. You’re a godsend.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: