Please Note: This article is written for users of the following Microsoft Word versions: 2007 and 2010. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Turning Off Smart Quotes for Specific Styles.
by Allen Wyatt
(last updated April 2, 2013)
Janet wonders if there is a way to disable smart quotes for particular styles. She works on a lot of programming documentation, with code examples, where smart quotes are invalid syntax. She would like for Word to notice that she is typing or pasting in "code example" paragraph style or "literal" character style, and not change the quote marks.
There is no way to do this in Word. The smart quotes feature is part of the AutoFormat capabilities of Word, and as such is either on or off for the entire document. Further, turning smart quotes on or off at any given point only affects what you type from that point forward, and it doesn't affect anything you paste into the document.
The best solution for the situation where you are creating programming documentation and you don't want smart quotes to appear in paragraphs formatted with a certain style is to create a macro. The macro would step through the paragraphs in your document and, if the paragraph was the designated style, change any smart quotes to regular quotes. Such a macro could be run at any time to make any necessary changes to the smart quotes.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12396) applies to Microsoft Word 2007 and 2010. You can find a version of this tip for the older menu interface of Word here: Turning Off Smart Quotes for Specific Styles.
Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!
Styles are a powerful component of Word. You use them to determine the way that your text should appear. This tip explains ...Discover More
When you apply styles to a paragraph, you may periodically see a message asking if you want to reapply the style or modify ...Discover More
Using styles to format templates can save a lot of time and ensure consistency when working on several documents. Some styles ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.