1
votes

I am using Word 2016 and have tried to use the Macro here: Macro to update all fields in a word document to update all the fields in my document (including headers and footers). However, now all the cross-referenced page numbers are set to "1", but everything else works perfectly.

But, when I select "Print" and just go back, all my fields and page numbers update correctly, including headers and footers.

Does someone know what "default" macro Word itself runs when you select "Print", but only the updating part?

1

1 Answers

1
votes

This could be an issue with your particular document. Incorrect page numbers might indicate that your document needs pagination. You can enforce pagination using this code:

ActiveDocument.Repaginate