![]() |
|
#2
|
||||
|
||||
|
Try something along the lines of:
Code:
Sub AdjustpageNumbers()
With ActiveDocument.Sections.First
.PageSetup.DifferentFirstPageHeaderFooter = True
.PageSetup.OddAndEvenPagesHeaderFooter = True
With .Headers(wdHeaderFooterFirstPage).PageNumbers
.StartingNumber = 84
.RestartNumberingAtSection = True
End With
With .Headers(wdHeaderFooterEvenPages)
.PageNumbers.NumberStyle = wdPageNumberStyleArabic
.Range.Fields.Add .Range.Characters.Last, wdFieldPage, , False
End With
With .Headers(wdHeaderFooterPrimary)
.PageNumbers.NumberStyle = wdPageNumberStyleArabic
.Range.Fields.Add .Range.Characters.Last, wdFieldPage, , False
End With
End With
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| setting page numbers |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Even page numbers disappear when setting up opposite headers. | slromine | Word | 2 | 08-02-2019 08:05 AM |
Footer for page numbers recently started showing a colored field when adding page numbers
|
thefonebug | Word | 12 | 10-24-2016 05:18 AM |
| How do I edit my TOC to reference the section numbers instead of the page numbers??? | mikey386 | Word | 0 | 12-17-2014 02:34 PM |
| How do I refer to page numbers, when the numbers change as I prepare the document? | StevenD | Word | 5 | 11-29-2012 12:52 AM |
Page Numbers Not Matching Chapter Numbers
|
gracie5290 | Word | 1 | 02-02-2012 11:41 PM |