There are occasions when one would like to color code sections of text for various reasons. But, regardless of the reason, you want to create several keyboard shortcuts to highlight text in a different color (i.e. a specific key combination).
Is it possible to do this? The short answer is yes, you can, BUT you will have to have a macro to do the work for you. Do not panic – this is very easy to do!
Before you set about creating your macro though, you will have to plan out what shortcut keys you will utilize. Regardless of which color you will use, you will first have to determine whether it will conflict with other uses of that specific key. I personally thought Alt (as in alternative) would be good, but that would absolutely be a conflict. So, I still think that Alt is a good key to use, but I will also use Shift along with it to avoid conflicts. So I would recommend using Shift + Alt + G (green), Shift + Alt + B (blue), Shift + Alt + Y (yellow), etc.
Now we need to record the macro. Follow the steps below to learn how:
- Select the text which you would like to be a different color
- Display the Developer tab of your Ribbon.
- In the Code group, click Record Macro to display the dialog box.
- In the Name field, key in a macro name that describes what you are doing (i.e., MakeTextBlue).
- In the Store Macro In drop-down list, select All Documents (Normal.dotm).
- Click Keyboard. Word will close the Record Macro dialog and display the Customize Keyboard dialog box. Note that the macro name you created above is shown in the dialog box and the insertion point is blinking in the Press New Shortcut Key box.
- Click the shortcut key you would like to use to start your macro (see above).
- Click the Assign button. The shortcut key is now shown as assigned to your macro.
- Click Close to close the Customize Keyboard dialog box. The macro recorder is still running.
- Click Ctrl+D to display the Font dialog box.
- Using the Font Color drop-down list, select the color of blue you like.
- Click OK to close the dialog box.
- Click Stop Recording in the Code group.
Your macro is now complete, and you can run it by selecting text and then pressing Shift+Alt+B. You can create similar macros to set other colors, as you like/need.
There is one part of the above steps that should be clarified. Note the way the Font dialog box is displayed in steps 10 through 12 above. You may think you could just display the Home tab of your ribbon and use the tools there to set your font color. The problem is that, when tested, this method did not always result in setting the color being recorded by the macro recorder. The font on the screen would change color, but the step did not appear in the macro. The only way to be sure to set the font color and have it recorded in the macro was to display the Font dialog box, as noted.
I personally think this is a great shortcut for those whom have the need for it. I just love saving time and keystrokes!