
Generating Page Numbers for Chapters
Hi Homer,
The following is a recording of the action of formatting the page numbers to
include the chapter number that can be done via Insert>Page Numbers>Format.
With Selection.Sections(1).Headers(1).PageNumbers
.NumberStyle = wdPageNumberStyleArabic
.IncludeChapterNumber = True
.HeadingLevelForChapter = 0
.ChapterPageSeparator = wdSeparatorHyphen
.RestartNumberingAtSection = True
.StartingNumber = 1
End With
You may have to tweak it for your purposes.
Please post any follow-up or new questions to the Newsgroups so that others
may benefit therefrom or contribute thereto.
Hope this helps,
Doug Robbins - Word MVP
Quote:
> Is there a way to generate page numbers for each chapter in my word
> document? I would like the numbering to be: Chapter-Page Number.
> I am controling this through Visual Basic 6.
> Thanks.