Adre
Adre

Reputation: 25

Macro to update all fields including header and footer

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?

Upvotes: 1

Views: 1990

Answers (1)

Dirk Vollmar
Dirk Vollmar

Reputation: 176159

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

Upvotes: 1

Related Questions