Shortcut key assignation for font color

D

Dee Randall

Hello,

I would like to assign a shortcut key to a color "red," under the "font
color" but I can only assign a shortcut key to the "font color," not the
actual color itself.

Can anyone give a suggestion. My main reason: I want to be able to click
on a sentence (or word, etc) and have a shortcut key for "red font" to make
the type itself red. I don't want to have to click on the "font color,"
then choose, as I use red a lot.

PS, I also have been unable to do the same thing for "highlight" i.e., I can
only get a shortcut key for the Highlight, but not for any specific color.

Any help will be appreciated. Thanks,

Dee
 
D

Dee Randall

Thank you, Greg. This looks like it will work to me. I appreciate the
extra url's you sent, which make it more clear to me.

My appreciation,
Dee
 
K

Klaus Linke

Hi Dee,

BTW, you probably have a font color button on the formatting toolbar
already. It looks like an "A" with a thick line underneath.
With the arrow on the right you can choose a color (say red), and each time
you click on the button from then on, the selected text will be formatted
in red.

The highlight button (looks like "ab" being marked with a marker pen) is to
the left, and works the same.

Regards,
Klaus
 
D

Dee Randall

Thanks, Klaus. I realize this, but I want to create a keystroke (alt+?) so
I won't have to go to the font color button and choose. I want to simply
click on the word, or sentence, or paragraph to highlight it, then with my
shortcut key that I have created for the red font, say, Alt+w, make the
word, sentence or paragraph red.
The same goes for the "highlighting" button; i.e., I'd like to create a
keystroke for perhaps a yellow highlight.

My best,
Dee
 
G

Graham Mayor

Create a character style that has the red font attribute, and assign Alt+w
to that style. Select the text and press Alt+w to make it red.
For the highlight create a macro containing the line:

Selection.Range.HighlightColorIndex = wdYellow

and assign a keyboard shortcut to that (or double click the toolbar area of
Word and from the customize dialog assign a keyboard shortcut - Alt+y ? - to
the Highlight command, which you'll find in All Commands)

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

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

Klaus Linke

Hi Dee,

You can also assign a shortcut key for the built-in "FontColor" command
(that's called when you click on the font color button).

The easiest way to assign shortcuts is to use Alt+Ctrl+Num+ (Alt-key +
Ctrl-key + "+" on the numeric keypad on the right of the keyboard), and
then klick on the button or menu item. The "customize keyboard" dialog will
open, with the command already selected, and the cursor already in the
field for the new shortcut.

Or if you forgot the shortcut Alt+Ctrl+Num+, you can use "Tools > Customize
Keyboard" as described by Graham for the "Highlight" command.

Regards,
Klaus
 
K

Klaus Linke

Hi Dee,

Re-reading your reply, I realize you want to set the font color and
highlight color independently on what's currently selected in the "font
color" and "highlight" tools.
For that, you need a macro as given by Graham for "highlight".

For the font color:

Selection.Font.Color=wdColorRed

Regards,
Klaus
 

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