Share via


Document.ClickAndTypeParagraphStyle Property

Word Developer Reference

Returns or sets the default paragraph style applied to text by the Click and Type feature in the specified document. Read/write Variant.

Syntax

expression.ClickAndTypeParagraphStyle

expression   An expression that returns a Document object.

Remarks

To set the ClickAndTypeParagraphStyle property, specify either the local name of the style, an integer, or a WdBuiltinStyle constant, or an object that represents the style. 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.

Example

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

Visual Basic for Applications
  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

See Also