Unlink' in your code would convert any field it encounters to plain text (ie it would cease to be a field and could no longer be updated as such).
To liven things up a bit, Word has a way to let you add dynamic (changing) elements to your document.
Please use the ' Update Field' button in the context menu to update the NUMPAGES field.
This behavior is by design, because an automatic update of this field influences the Xtra Rich Edit performance.
You can access fields as follows: For a complete list of fields, read Field codes in Word.
You can bypass the interface and enter fields manually.
To toggle between the field code and its resulting value, select the entire field and press Shift F9.