1
votes

The following code only updates the fields outside the page headers.

ActiveDocument.Fields.Update

I also asked the question on MSDN Forums

2

2 Answers

2
votes

OK, I found it.

ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.Fields.Update
1
votes

Geoffrey's answer did not work for me for some reason.

Eventually I got the fields updated in my footers using a sledgehammer and a stick of dynamite like so:--

        wDoc.PrintPreview();
        wDoc.ClosePrintPreview();