How to make a shortcut to toggle Text boundries on/off

M

michellesyr

I really like the "view text boundries" feature (Tools>Options>View>Text
boundries) in Word, but I find myself constantly toggling it on and off. I
would like to create a keyboard shortcut in Word for this feature, but cannot
seem to find it in the Commands list (View>Toolbars>Customize>Commands). Does
anyone know the command for this? I am using Word 2003. Thanks in advance for
your help.
 
S

Suzanne S. Barnhill

Because it's an Options choice, you'll probably need a macro (which may be
more complex than you imagine). There are a lot of options I'd like to be
able to toggle with a single click, but the closest I've gotten to this is
to add the Options dialog to my Menu Bar so that at least it's just a single
click away.
 
J

Jay Freedman

You do need a macro, but it isn't that complex:

Sub ToggleTextBoundaries()
With ActiveDocument.ActiveWindow.View
.ShowTextBoundaries = Not .ShowTextBoundaries
End With
End Sub

See http://www.gmayor.com/installing_macro.htm if you need instructions for
installing it, and
http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm for
making a button to run it.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
S

Suzanne S. Barnhill

Not complex to write (if you're VBA-enabled), but very tricky to record
because Word captures *all* the Options settings.
 
M

michellesyr

Jay,

I installed the macro (which was very easy) and then assigned a shortcut to
it. Thanks so much for your help.

Michelle
 

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