Is there a shortcut toput parentheses around selected text?

J

Jay Freedman

There is no such shortcut built into Word. You can make one for yourself,
though.

Follow the instructions in http://www.gmayor.com/installing_macro.htm to put
this little macro in your Normal.dot template:

Sub AddParens()
Selection.Text = "(" & Selection.Text & ")"
End Sub

Then assign a keyboard shortcut to this macro
(http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToHotkey.htm).

The macro can be made a bit smarter; for example, if the selected text has one
or more spaces at the end, the macro can be made to put the spaces after the
closing parenthesis instead of before it. If you want to pursue that, post in
the VBA Beginners group,
http://www.microsoft.com/communitie...t.aspx?dg=microsoft.public.word.vba.beginners.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top