Change color of new text

R

Richard

I can use
Selection.Font.Color = wdColorBlue
to change color of existing font.

How can I set the color of the text I'm about to type?
(The font color menu button does this, but I want to make a quick-key macro)
 
G

Greg Maxey

You would probably want to use some sort of toggle macro to toggle
between your default color e.g., wdColorAutomatic and wdColorBlue:

Sub TogFont()
If Selection.Font.Color = wdColorAutomatic Then
Selection.Font.Color = wdColorBlue
Else
Selection.Font.Color = wdColorAutomatic
End If
End Sub
 
K

Klaus Linke

Or if you want to achieve the same result as clicking on the button:

WordBasic.FontColor

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