UnderlineColor Property

         Example         Applies To

Returns or sets the 24-bit color of the underline for the specified Font object. Can be any valid WdColor constant or a value returned by the RGB function. Read/write Long.

Remarks

For the list of valid WdColor constants, see the Object Browser in the Visual Basic Editor.

Setting the UnderlineColor property to wdColorAutomatic resets the color of the underline to the color of the text above it.