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.
The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!
A common way to set up a header is to have it refer to the first occurrence of a heading on the page. (Think how the headers ...Discover More
Styles are a key concept in Microsoft Word. If you understand styles, you will find it much easier to use Word effectively.Discover More
One of the features of Word that can cause some problems is one that allows styles to be automatically updated based upon ...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.