Share via


Range.AutoFormat Method (Word)

Automatically formats a document. Use the Kind property to specify a document type.

Syntax

expression .AutoFormat

expression Required. A variable that represents a Range object.

Example

This example automatically formats the selection.

Selection.Range.AutoFormat

See Also

Concepts

Range Object Members

Range Object