ID: Q168922
The information in this article applies to:
When you select all text in a document and press F9 to update all of the fields, the PageRef fields do not update the page numbers correctly.
This problem occurs when:
-and-
To resolve this problem, upgrade to Microsoft Word 97.
Use one of the following methods to work around this problem.
Individually select each field in the document, and then press F9 to update the selected field.
WARNING: ANY USE BY YOU OF THE MACRO CODE PROVIDED IN THIS ARTICLE IS AT THE OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
The following example WordBasic macro updates each field in the document one field at a time.
Sub Main()
While NextField()
UpdateFields
Wend
End Sub
Additional query words: updating updates changes last pages numbers count
incorrect wrong
Keywords : kbusage kbfield
Version : 6.0 6.0a 6.0c 7.0 7.0a
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: August 1, 1997