ClickAndTypeParagraphStyle Property

Microsoft Word Visual Basic

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