Microsoft KB Archive/835226

= Only the first occurrence of the NUMPAGES field is updated when you try to update the fields in the body of your Word 2002 document =

Article ID: 835226

Article Last Modified on 4/7/2006

-

APPLIES TO


 * Microsoft Word 2002 Standard Edition

-







For a Microsoft Word 2003 version of this article, see 835227.

Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you try to update the fields in the body of your Microsoft Word 2002 document, only the first occurrence of the NUMPAGES field is updated. If you try to update the fields in the document body again, only the second occurrence of the NUMPAGES field is updated. To update all the NUMPAGES fields that are contained in the body of your document, you must repeatedly press F9 as many times as there are NUMPAGES fields in the body of your document.

To update the fields in the body of your document, press CTRL+A, and then press F9.



CAUSE
This problem may occur after you install and activate the hotfix that is described in the following article:

830346 Overview of the Word 2002 Security Patch: November 11, 2003



How to obtain the hotfix
This issue is fixed in the Word 2002 post-Service Pack 3 Hotfix Package May 5, 2004. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

830807 Word 2002 post-Service Pack 3 hotfix package: May 5, 2004

After you install this hotfix, follow the steps that are listed in the &quot;More Information&quot; section of this article to set the UpdateAllNumpages registry key and to activate the hotfix.



MORE INFORMATION
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Important If you activate this hotfix, you may experience a different problem with the NUMPAGES field in the header or in the footer of your document. For more information, see the &quot;Additional information&quot; section.

To activate this hotfix, follow these steps:  Quit Word. Click Start, and then click Run. In the Open box, type regedit, and then click OK. Locate, and then click to select the following registry key:

 

 After you select the key that is specified in step 4, point to New on the Edit menu, and then click DWORD Value.</li> Type UpdateAllNumpages, and then press ENTER.</li> Right-click UpdateAllNumpages, and then click Modify.</li> In the Value data box, type 1, and then click OK.</li> On the File menu, click Exit to quit Registry Editor.</li></ol>

<div class="moreinformation_section">

Additional information
After you install and activate this hotfix, you may experience the following symptom: <ul> When you print a document that contains the NUMPAGES field, the NUMPAGES field may print incorrectly. For example, this problem may occur with a document that contains page fields that are similar to the following:

{PAGE} of {NUMPAGES}

When you print, the page fields may appear similar to the following:

1 of 1

2 of 2

3 of 3

Note When you view the document on screen, the page fields (NUMPAGES) appear correctly.</li></ul>

To work around this problem, use one of the following methods before you print your document.

Method 1: Turn off background printing
Note Background printing permits Word 2002 to print your document in the background so that you can continue to work in Word while your document is being printed.

To turn off background printing, follow these steps:
 * 1) On the Tools menu, click Options.
 * 2) On the Print tab, click to clear the Background printing check box.
 * 3) Click OK.

Method 2: Turn on the Reverse Print Order option
Note The Reverse Print Order option prints pages in reverse order, starting with the last page of the document. Do not use this method if you are printing an envelope.

To turn on the Reverse Print Order option, follow these steps:
 * 1) On the Tools menu, click Options.
 * 2) On the Print tab, click to select the Reverse print order check box.
 * 3) Click OK to close the Options dialog box.

Keywords: kbbug kbfix kbqfe kbhotfixserver kbofficexppostsp3fix KB835226

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.