You may receive invalid results or a "Run-time error '5852'" error message when you programmatically step through the Revisions collection in Word 2003 (913804)
The information in this article applies to:
- Microsoft Office Word 2003
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows registry SYMPTOMSWhen you programmatically step through the Revisions collection in a Microsoft Office Word 2003 document, some revision objects may be skipped. Additionally, some revision objects may be accessed more than one time. When this problem occurs, you may receive the following error message: Run-time error '5852'. Requested object is not available. CAUSEThis problem may occur if the following conditions are true: - There is more than one formatting revision in a table in the document.
- You use a FOR EACH loop in the macro.
This problem may occur even after you apply the hotfix that is described in the following Microsoft Knowledge Base article: 841539 You cannot review all the tracked changes in a Word 2003 document
RESOLUTIONHow to obtain the hotfixThis issue is fixed in the Word 2003 post-Service Pack 2 Hotfix Package that is dated January 31, 2006. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 913803 Description of Word 2003 post-Service Pack 2 hotfix package: January 31, 2006 Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. To enable this hotfix, follow these steps: - Exit Word 2003.
- Click Start, click Run, type regedit in the Open box, and then click OK.
- Locate and then click the following registry subkey:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Word\Options - After you select the subkey that is specified in step 3, point to New on the Edit menu, and then click DWORD Value.
- Type AlternateRevisionStepThrough, and then press ENTER.
- Right-click AlternateRevisionStepThrough, and then click Modify.
- In the Value data box, type 1, and then click OK.
- On the File menu, click Exit to exit Registry Editor.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Minor | Last Reviewed: | 7/26/2006 |
---|
Keywords: | KbVBA kbAutomation kbProgramming kberrmsg kbExpertiseInter kbQFE kbbug kbfix kbpubtypekc KB913804 kbAudKnowledgeWorker |
---|
|