Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 11-18-2024, 04:15 AM
macropod's Avatar
macropod macropod is offline Setting page numbers Windows 10 Setting page numbers Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
 

Tags
setting page numbers



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
Setting page numbers 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
Setting page numbers Page Numbers Not Matching Chapter Numbers gracie5290 Word 1 02-02-2012 11:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft