

That's fine if I just want to infrequently highlight text in a specific color. That means that I then have to have voluminous series of macros to be able to do the same thing with each (basic) color variation. But with each of those macros, I'm forced to declare a specific color. For example, I have used numerous different iterations of macros to highlight text as I'm typing it, or to automatically highlight X number of words to my left, or a line or sentence or paragraph.

So, for example, I can manually select three words to my left, and use Ctrl+ Alt+ H to invoke the built-in Highlight command, and it will use the current default color.īut I'm unable to automate that further with a macro. When working with a word document, you may need to highlight one or more paragraphs to make them standing out. I have keyboard shortcuts (many) for a lot of highlighting options, including the built-in command shortcut to highlight text that I have selected manually. But sometimes I have a scenario where I want to highlight random text in an ongoing manner, multiple times, in a particular color.

I have a bazillion macros created that highlight text every which way to Sunday, in every possible (basic) color, and they all work great. I have looked through my personal resource books and all up and down the land of Google, including here.
#More highlight colors in word code
I have been searching off and on, high and low, for many months, to no avail, for VBA code that I can include in my macros to highlight text using the current default highlight color.
