Monday, February 17, 2014

How to know the code of the font color (VBA Word)

If you know the color you want, but you do not know which is its code, simply :

1.Paint text with the color you want,
2.Select the painted text'
3.And, run the following macro.

Sub color_code()

Msgbox Selection.Font.color

End Sub

A Message Box will appear on your screen with the code of the required color.

No comments: