FontSize Property

Microsoft Publisher Visual Basic

Returns or sets a Variant that represents the font size for the specified WordArt, in points. Read/write.

expression.FontSize

expression    Required. An expression that returns one of the above objects.

ShowFontSize property as it applies to the PhoneticGuide object.

Returns a Variant that represents the font size of phonetic characters. Read-only.

expression.FontSize

expression    Required. An expression that returns one of the above objects.

Example

This example sets the font size, name, and bold setting for the specified WordArt shape. This example assume the first shape on the first page of the active publication is a WordArt object.

Sub SetWordArtFontSize()
    With ActiveDocument.Pages(1).Shapes(1).TextEffect
        .FontSize = 54
        .FontBold = msoTrue
        .FontName = "Snap ITC"
    End With
End Sub