FormatHeadingNumber

Syntax

FormatHeadingNumber [.Points = number] [, .Color = number] [, .Before = text] [, .Type = number] [, .After = text] [, .StartAt = number] [, .Include = number] [, .Alignment = number] [, .Indent = number or text] [, .Space = number or text] [, .Hang = number] [, .RestartNum = number] [, .Level = number] [, .Font = text] [, .Strikethrough = number] [, .Bold = number] [, .Italic = number] [, .Underline = number]

Remarks

Applies numbers to all paragraphs in the document formatted with one of the
nine built-in heading level styles, or changes numbering options for a specified heading level. The arguments for the FormatHeadingNumber statement correspond to the options in the Modify Heading Numbering dialog box (Heading Numbering command, Format menu).

Argument

Explanation

.Points, .Color, .Font, .Strikethrough, .Bold, .Italic, .Underline

Apply character formatting to numbers at the specified level. For argument descriptions, see FormatFont.

.Before, .After, .Alignment, .Indent, .Space, .Hang

Set options for numbers at the specified level. For argument descriptions, see FormatNumber.

.Type

Specifies a format for numbering headings at the specified level:

0 (zero) 1, 2, 3, 4

1 I, II, III, IV

2 i, ii, iii, iv

3 A, B, C, D

4 a, b, c, d

5 1st, 2nd, ¼

6 One, Two, ¼

7 First, Second, ¼

.StartAt

The number for the first heading in each sequence of headings of the specified level. If .Type is 3 or 4, .StartAt corresponds to the position in the alphabet of the starting letter.

.Include

Specifies whether to include numbers and position options from the previous headings for numbers at the specified level:

0 (zero) Includes neither numbers nor position options.

1 Includes a series of numbers from higher-level headings before the numbers at the specified level.

2 Includes both numbers from higher-level headings and position options from the previous level.


Argument

Explanation

.RestartNum

If 1, restarts heading numbering at each new section.

.Level

A number from 1 through 9 corresponding to the heading level whose numbering options you want to change.


See Also

FormatBullet, FormatHeadingNumbering, FormatMultilevel, FormatNumber