Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.41 KB

Word.Document.ClickAndTypeParagraphStyle.md

File metadata and controls

55 lines (34 loc) · 1.41 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Document.ClickAndTypeParagraphStyle property (Word)
vbawd10.chm158007624
vbawd10.chm158007624
Word.Document.ClickAndTypeParagraphStyle
e53d3740-265f-b3ed-350a-24dd97d9f7ab
06/08/2017
medium

Document.ClickAndTypeParagraphStyle property (Word)

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.

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

Document Object

[!includeSupport and feedback]