underline words only

J

jeannine

I'm using Word 2002, and I've set up a macro for setting
up our documents with default margins, justification, page
numbering, etc. I'd like to add "underline words only" in
my macro as well, since we deal with a lot of biological
names. Is there a way to set the underline feature so that
whenever you turn it on throughout a document using ctrl
u, it will underline only words, without having to go into
format, font, etc. Is ctrl shift W the only other quick
way to do it? In other words, when I was using Word
Perfect, after I used my setup macro, whenever I turned
underline on, it would automatically underline words only.
I'm sorry if this looks like a really lame question.
 
G

Graham Mayor

Create a character style featuring underline words only. Assign a keystroke
combination to the style - reassign CTRL+U if you wish, but I would suggest
CTRL+SHIFT+U. Click the add to template check box before exiting the style
formatting dialog and don't forget to save normal.dot when prompted on
closing Word

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
J

Jay Freedman

Hi, Jeannine,

You can assign any keyboard shortcut you like to any command that's
available. If you would rather have word-only underlining when you press
Ctrl+U, do this:

- Open the Tools > Customize dialog.
- Click the Keyboard button.
- Check that the "Save changes in" box lists Normal.dot.
- In the Categories list, click Format.
- In the Commands list, click WordUnderline.
- Put the cursor in the "Press new shortcut key" box.
- Press the Ctrl+U shortcut. Below the box, it will tell you that shortcut
is currently assigned to Underline.
- Click the Assign button.
- Click the Close buttons in both dialogs.
When you close Word, if it asks whether to save Normal.dot, say yes.

In a setup macro, the following code will change the assignment just for the
current document, even if you left it unchanged in Normal.dot:

Dim myKey As KeyBinding
CustomizationContext = ActiveDocument
Set myKey = FindKey(BuildKeyCode(wdKeyControl, wdKeyU))
myKey.Rebind KeyCategory:=wdKeyCategoryCommand, _
Command:="WordUnderline"
 
S

Suzanne S. Barnhill

It depends on how you are applying the underline. If you're using Ctrl+U and
find Ctrl+Shift+W too much trouble, you might reassign Ctrl+U to word
underline. If you're using the Underline toolbar button, then add a toolbar
button for Word Underline.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

jeannine

Thanks, everyone for your help.

Jeannine
-----Original Message-----
Create a character style featuring underline words only. Assign a keystroke
combination to the style - reassign CTRL+U if you wish, but I would suggest
CTRL+SHIFT+U. Click the add to template check box before exiting the style
formatting dialog and don't forget to save normal.dot when prompted on
closing Word

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>




.
 
?

=?iso-8859-1?Q?Jos=E9_Ir=E1n_Murillo_Mor=E1n?=

-----Original Message-----
I'm using Word 2002, and I've set up a macro for setting
up our documents with default margins, justification, page
numbering, etc. I'd like to add "underline words only" in
my macro as well, since we deal with a lot of biological
names. Is there a way to set the underline feature so that
whenever you turn it on throughout a document using ctrl
u, it will underline only words, without having to go into
format, font, etc. Is ctrl shift W the only other quick
way to do it? In other words, when I was using Word
Perfect, after I used my setup macro, whenever I turned
underline on, it would automatically underline words only.
I'm sorry if this looks like a really lame question.
.
 

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