Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

MS Word Custom SHortcut Key

In MS WORD Office 365 (Desktop0

I want to hightlight text
And then use a hot key? Shortcut key?

To put a yellow background on that text

Avatar of John Korchok
John Korchok
Flag of United States of America image

Choose Home>Font and select the yellow highlighter:
User generated image
Well, Alt-Ctrl-H will apply the current highlight colour—but if you change it to a different colour, the same keyboard shortcut will apply the new colour instead.

If you want a shortcut to apply a specific colour, you could assign one to a short VBA routine like this:
Sub ApplyYellowHighlight()
Selection.Range.HighlightColorIndex = wdYellow
End Sub

Open in new window

The above will apply the yellow highlight to whatever is selected. Unlike when you use the Highlight button, this method won't alter the current default colour. It also lets you use you several more colour options (see this Microsoft Docs description of the HighlightColorIndex property.)
Avatar of Larry Brister

ASKER

ok guys
So
There is no way to
Highlight text
And use a CTRL+ALT +[whatever]

To apply the yellow background?
ASKER CERTIFIED SOLUTION
Avatar of Eric Fletcher
Eric Fletcher
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial