Welcome toWord.Tips.Net
Ask a Word Question
Make a Comment
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Collapsing and Expanding Subdocuments
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 Word 6 or Word 95, you can use the following macro, AddParens:
Sub MAIN
If SelType() = 2 Then
T$ = Rtrim$(Selection$())
Insert "("
Insert T$
Insert ")"
End If
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 #478 applies to Microsoft Word versions: 6 95
Save Time! WordTips has been published weekly since early 1997. Past issues are available in convenient WordTips archives. Have your own enhanced archive of WordTips at your fingertips, available to use at any time!