Hi,
Take a look at my Add-Ins:
Both cover your issue. Neither has any macros.
Long term, learn to use the page numbering fields in Word. It will give you far more flexibility. X is the Page field. Y is the Numpages field. Z is the Sectionpages field.