Article ID: 140180
Article Last Modified on 8/17/2005
Sub Main
FormatPageNumber .ChapterNumber="1", .Level="1"
End Sub
When you record the macro, Word specifies the Level consistent with the
documentation, for example:
Sub Main
FormatPageNumber .ChapterNumber="1", .Level="0"
End Sub
.Level = 0
A number corresponding to the heading level applied to the first paragraph in each chapter (for including the chapter number with the page number).
HeadingLevelForChapter Property
Returns or sets the heading level style that's applied to the chapter titles in the document. Can be a number from 0 (zero) through 8, corresponding to heading levels 1 through 9.
Additional query words: formatpagenumber format page number
Keywords: kbbug kbmacro kbprogramming kbdtacode KB140180