Expand Minimize

Range.AutoFormat Method (Word)

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

expression .AutoFormat

expression Required. A variable that represents a Range object.

This example automatically formats the selection.

Selection.Range.AutoFormat
Show:
© 2014 Microsoft