WD: PAGEREF Field Does Not Update Page Number Reference

Last reviewed: July 31, 1997
Article ID: Q168922
The information in this article applies to:
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c

SYMPTOMS

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.

CAUSE

This problem occurs when:

  • You insert a cross-reference (on the Insert menu) with a Reference type, such as, a Heading, and an Insert Reference To type, of Page Number.

    -and-

  • You use fields that can span multiple pages, such as an AutoText field referencing a large AutoText entry.

RESOLUTION

To resolve this problem, upgrade to Microsoft Word 97.

WORKAROUND

Use one of the following methods to work around this problem.

Method 1: Update Each Field Manually

Individually select each field in the document, and then press F9 to update the selected field.

Method 2: Use the Following Macro to the Update Fields

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 : kbfield kbusage
Version : 6.0 6.0a 6.0c 7.0 7.0a
Platform : WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 31, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.