View Single Post
 
Old 01-20-2020, 02:15 PM
mbr50 mbr50 is offline Mac OS X Office 2016 for Mac
Novice
 
Join Date: Jan 2020
Posts: 3
mbr50 is on a distinguished road
Default

I have substituted your
Code:
.RestartNumberingAtSection = True
in the third loop and this works almost perfectly. Thank you.

I am still unable to work out how to center the page number on the page (it currently sits in a frame on its own aligned to the right of the document), because
Code:
rng.ParagraphFormat.Alignment = wdAlignParagraphCenter
centers the paragraph, but not the page number.

How do I center the page number frame in VBA? This is quite easy to do by right clicking, Format Frame > Position > Center, but I cannot replicate this programmatically.
Reply With Quote