Normally, you add quote marks to your text as you type. There may be times, however, when you want to add the quote marks at a later time. For instance, while editing your document you may select some text and then want quote marks added around the selected text. You can accomplish this task with the following macro:
Sub AddQuotes() Dim sBegQ As String Dim sEndQ As String If Options.AutoFormatAsYouTypeReplaceQuotes Then sBegQ = Chr(147) sEndQ = Chr(148) Else sBegQ = Chr(34) sEndQ = Chr(34) End If Selection.InsertBefore sBegQ Selection.InsertAfter sEndQ End Sub
The macro determines the proper type of quote marks to use, based on whether you have Word's SmartQuotes turned on or not. The proper quotes are then placed before and after the selection.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (9) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Adding Quotes.
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!
Displaying non-printing characters can help you better understand the formatting and contents of your documents. What do ...
Discover MoreSome fractions Word automatically converts to single characters, some it doesn't. Here's why that happens and what you ...
Discover MoreIf you use justified paragraphs, you know that if you press Shift+Enter, it can lead to some odd spacing between words ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2019-09-30 13:35:17
Niki Pino
Do you know how to add quotes to multiple lines in MS Word? So that quotes are at the beginning of each new line after enter is pushed and at the end before enter is pushed?
Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2021 Sharon Parq Associates, Inc.
Comments