Written by Allen Wyatt (last updated August 2, 2025)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365
Normally, you add parentheses around your parenthetical remarks as you type your text. There may be times, however, when you want to add the parentheses at a later time. For instance, while editing your document you may select some text and then want parentheses added around the selected text. The following macro, AddParens, can be used to add the desired parentheses:
Sub AddParens() Dim sTemp As String sTemp = Right(Selection.Range.Text, 1) If sTemp = Chr(13) Or sTemp = " " Then Selection.MoveEnd Unit:=wdCharacter, Count:=-1 End If If Len(Selection.Range) > 0 Then Selection.InsertBefore "(" Selection.InsertAfter ")" Else MsgBox "No text was selected!" End If End Sub
The macro first checks to see if the selected text ends in a space or a hard return. If that is the case, then the selection is modified so those characters aren't included. It then uses the InsertBefore and InsertAfter methods to add the appropriate parenthesis before and after the selected text.
To use the macro, assign it to a shortcut key or to a toolbar button. You then select the target text and invoke the macro. The desired parentheses are added to the text. (If you don't select any text before invoking the macro, you'll see a message box to that effect.)
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 (11920) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Adding Parentheses.
Do More in Less Time! An easy-to-understand guide to the more advanced features available in the Microsoft 365 version of Word. Enhance the quality of your documents and boost productivity in any field with this in-depth resource. Complete your Word-related tasks more efficiently as you unlock lesser-known tools and learn to quickly access the features you need. Check out Microsoft 365 Word For Professionals For Dummies today!
When you need to perform certain editing tasks over and over again, you start to look for ways to make your work faster ...
Discover MoreSometimes you may see characters in a document that you cannot get rid of and you aren't sure what they are. That's the ...
Discover MoreThe Track Changes tool can be a great asset when you are working on a document with others. It can also be a hassle if ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
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.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments