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