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

Tips.Net > WordTips Home > Editing > Adding Parentheses in WordBasic

Adding Parentheses in WordBasic

Summary: Want to add parens around a word or phrase in a single click? Here's a WordBasic macro that can help you. (This tip works with Microsoft Word 6, and Word 95.)

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


Great Idea! Word is a tool to get what you really want—printed output. This means you need to make sure that Word works as well as possible with your printer, whether it is sitting on your desk or in a room down the hall.
 
Check out WordTips: Printing and Printers 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.)