Font.Underline property (Publisher)

Returns or sets a PbUnderlineType constant that indicates the type of underline for the selected characters in the specified font in a text range. Read/write.

Syntax

expression.Underline

expression A variable that represents a Font object.

Return value

PbUnderlineType

Remarks

The Underline property value can be one of the PbUnderlineType constants declared in the Microsoft Publisher type library.

Example

This example formats the characters of the first story with a dashed and heavy underline.

Sub DashHeavy() 
 
 Application.ActiveDocument.Stories(1).TextRange.Font.Underline = pbUnderlineDashHeavy 
 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.