ClickAndTypeParagraphStyle Property

Microsoft Word Visual Basic

ClickAndTypeParagraphStyle Property

       

Returns or sets the default paragraph style applied to text by the Click and Type feature in the specified document. To set this property, specify either the local name of the style, an integer, or a WdBuiltinStyle constant, or an object that represents the style. Read/write Variant.

expression.ClickAndTypeParagraphStyle

expression   Required. An expression that returns a Document object.

Remarks

For a list of the WdBuiltinStyle constants, consult the Microsoft Visual Basic Object Browser.

If the InUse property for the specified style is set to False, an error occurs.

For more information on Click and Type, see Overview of Click and Type.

Example

This example sets the default paragraph style applied by Click and Type to Plain Text.

With ActiveDocument
    x = "Plain Text"
    If .Styles(x).InUse Then
        .ClickAndTypeParagraphStyle = x
    Else
        MsgBox "Sorry, this style is not in use yet."
    End If
End With