DropCap Object

Microsoft Publisher Visual Basic

DropCap Object

TextRange DropCap
ColorFormat

Represents a dropped capital letter at the beginning of a paragraph.

Using the DropCap Object

Use the DropCap property to return a DropCap object. The following example sets a dropped capital letter for the first letter of each paragraph in the first shape on the first page of the active publication. This example assumes that the specified shape is a text box and not another type of shape.

Sub ApplyDropCap()
    ActiveDocument.Pages(1).Shapes(1).TextFrame.TextRange _
        .DropCap.ApplyCustomDropCap Size:=3, Span:=3, Bold:=True
End Sub