Share via


Range.AutoFormat Method

Word Developer Reference

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.

Visual Basic for Applications
  Selection.Range.AutoFormat

See Also