FormatNumberDefault, FormatNumberDefault()

Syntax

FormatNumberDefault [On]

FormatNumberDefault()

Remarks

The FormatNumberDefault statement adds numbers to or removes numbers from the selected paragraphs.

Argument

Explanation

On

Specifies whether to add or remove numbers:

0 (zero) Removes numbers. If the paragraph preceding or following the selection is not formatted as a list paragraph, the list format in the selection is removed along with the numbers.

1 Adds numbers. If the paragraph preceding or following the selection already has numbers applied with the Bullets And Numbering command (Format menu), the selected paragraphs are formatted with the same numbering scheme; otherwise, the default settings of the Bullets And Numbering dialog box are used.

Omitted Toggles numbers.


The FormatNumberDefault() function returns the following values.

Value

Explanation

0 (zero)

If none of the selected paragraphs are numbered or bulleted

–1

If the selected paragraphs are not all bulleted, all "skipped," or all formatted with the same level of numbering

1–9

If all the selected paragraphs are numbered with the same level of numbering in a multilevel list


Value

Explanation

10

If all the selected paragraphs are numbered with one of the six schemes on the Numbered tab in the Bullets And Numbering dialog box

11

If all the selected paragraphs are bulleted

12

If all the selected paragraphs are "skipped"


See Also

FormatBulletDefault, FormatBulletsAndNumbering, SkipNumbering