Share via


FontColor Property [Publisher 2003 VBA Language Reference]

Returns or sets a ColorFormat object that represents the color applied to a specified dropped capital letter.

expression.FontColor

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example applies an RGB color to the dropped capital letter in the specified text frame. This example assumes that the specified text frame is formatted with a dropped capital letter.

Sub BoldDropCap()
    With ActiveDocument.Pages(1).Shapes(1) _
            .TextFrame.TextRange.DropCap
        .FontBold = msoTrue
        .FontColor.RGB = RGB(Red:=150, Green:=50, Blue:=180)
        .FontItalic = msoTrue
        .FontName = "Script MT Bold"
    End With
End Sub

Applies to | DropCap Object