Email this Page
Log Support Call
Send Feedback
Print |
|||||
Adding Chapter or Section Numbering to Page Numbers in WordThere are times when you may have a requirement to use page numbering that also contains the chapter number - for example, 1-7, 3-21, etc. This can be achieved quite easily, with a few small changes to your Word Publishing template and an AfterPublish macro. To Add Chapter Numbering to Page Numbers:
Sub AfterPublish() Dim DocSection As Section For Each DocSection In ActiveDocument.Sections With DocSection.Headers(1).PageNumbers .NumberStyle = wdPageNumberStyleArabic .IncludeChapterNumber = True .HeadingLevelForChapter = 0 .ChapterPageSeparator = wdSeparatorHyphen .RestartNumberingAtSection = True .StartingNumber = 1 End With Next DocSection ActiveDocument.Fields.Update End Sub Note: To restart the numbering for each chapter, (for example, 1-1, 2-1, 3-1 etc) ensure |
|||||
| Top of Page |
Email this Page
Log Support Call
Send Feedback
Print |
||||
|
|||||