bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Editing > Adding Parentheses

Adding Parentheses

Summary: Need to add parentheses around some word or phrase? Here’s a quick macro that makes this simple edit in one step. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

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()
    Selection.InsertBefore "("
    Selection.InsertAfter ")"
End Sub

The macro 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.

Tip #479 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007


Find and Replace Almost Anything! An invaluable resource for learning how to harness the full power of Word's search and replace capabilities. You'll discover everything you need in order to master all the intricacies of finding and replacing elements of your document, including the super-powerful ?wildcard searches? available in Word.
 
Check out WordTips: Find and Replace today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)