Microsoft KB Archive/211558

= WD2000: The DocVariable Field Is an Autoindex Field After Conversion =

Article ID: 211558

Article Last Modified on 8/6/2002

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q211558





SYMPTOMS
When you open a Microsoft Word 2000 document in a version of Word earlier than Word 97, the following error message may appear:

Error! Bookmark not defined.

By viewing field codes (ALT+F9), you see the following field:

{autoindex " " \* Mergeformat }



CAUSE
The document contains a DocVariable field that was inserted and saved from Word 2000, and the document has been:
 * Opened in an earlier version of Word (6.x or 7.x) using the Word 2000 import converter.

-or-
 * Opened and saved from a earlier version of Word (6.x, 7.x) using the Word 2000 import converter, and has been reopened in Word 2000.

The Autoindex field is a converted DocVariable field. Because the DocVariable field is not available in versions of Word earlier than Word 97, the conversion process does not convert it in versions of Word earlier than Word 97. The document variables are lost during the conversion and cannot be retrieved.



WORKAROUND
To retain the document variables, save the document using the Microsoft Word 6.0/95 or the Rich Text Format converter while in Word 2000; to do so, follow these steps:
 * 1) Open the document in Word 2000.
 * 2) On the File menu, click Save As.
 * 3) In the Save As dialog box, change the file type (under Save as type) to either Word 6.0/95 (*.doc) or Rich Text Format(*.rtf).



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



DocVariable Field Description
The DocVariable field inserts the string assigned to a document variable. Each document has a collection of variables, which can be added and referenced by the Visual Basic for Applications programming language. This field provides a way to display the contents of the document variables in the document.

