
Tips.Net > WordTips Home > Editing > Adding Parentheses
Summary: Want to add parens around a word or phrase in a single click? Here's a VBA macro that can help you. (This tip works with Microsoft Word 97, Word 2000, Word 2002, and Word 2003.)
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. If you are using a version of Word that supports VBA, you can use the following macro, AddParens:
Sub AddParens()
Selection.InsertBefore "("
Selection.InsertAfter ")"
End Sub
This macro first checks to make sure you have selected some text. If so, the selected text is replaced with the proper text within parentheses.
Tip #479 applies to Microsoft Word versions: 97 2000 2002 2003
Great Idea! Uncover the many ways you can master the full potential of printing your documents. WordTips: Printing and Printers can help you get the most from both the printed page and your printer.
Add power to your purpose with Word. A comprehensive 480+ page e-book explains everything you need to know about macros. (more information...)
Ask a Word Question
Make a Comment
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