Syntax
FormatPageNumber [.ChapterNumber = number] [, .NumRestart = number] [, .NumFormat = number] [, .StartingNum = number] [, .Level = number] [, .Separator = number]
Remarks
Determines the format of the page numbers used in the current section. The arguments for the FormatPageNumber statement correspond to the options in the Page Number Format dialog box (Page Numbers command, Insert menu).
Argument | Explanation | |
.ChapterNumber | If 1, includes the chapter number with the page number. | |
.NumRestart | Determines whether or not a different starting number can be set: 0 (zero) Selects the Continue From Previous Section option (the setting for .StartingNum has no effect). 1 Selects the Start At option (numbering begins at the number set for .StartingNum). | |
.NumFormat | The format for the page numbers: 0 (zero) 1 2 3¼ 1 a b c¼ 2 A B C¼ 3 i ii iii¼ 4 I II III¼ | |
.StartingNum | The current section's starting page number (if .NumRestart is set to 1). |
Argument | Explanation | |
.Level | A number corresponding to the heading level applied to the first paragraph in each chapter (for including the chapter number with the page number). | |
.Separator | If you specify .ChapterNumber, specifies the separator between the chapter number and the page number: 0 (zero) Hyphen 1 Period 2 Colon 3 Em dash 4 En dash |
See Also
InsertPageNumbers