Link to home
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


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

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

Blurred text
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial