Options.AutoFormatReplaceOrdinals Property

Word Developer Reference

True if the ordinal number suffixes "st", "nd", "rd", and "th" are replaced with the same letters in superscript when Word formats a document or range automatically. For example, "1st" is replaced with "1" followed by "st" formatted as superscript. Read/write Boolean.

Syntax

expression.AutoFormatReplaceOrdinals

expression   A variable that represents an Options object.

Example

This example turns on the automatic replacement of ordinals with superscript, and then it formats the current selection automatically.

Visual Basic for Applications
  Options.AutoFormatReplaceOrdinals = True
Selection.Range.AutoFormat

This example returns the status of the Ordinals (1st) with superscript option on the AutoFormat tab in the AutoCorrect dialog box (Tools menu).

Visual Basic for Applications
  Dim blnAutoFormat as Boolean

blnAutoFormat = Options.AutoFormatReplaceOrdinals

See Also