WD98: DocVariable Field Is Autoindex Field After Conversion

ID: Q184155

The information in this article applies to:

SYMPTOMS

When you open a Word 98 Macintosh Edition document in an earlier version of Word, the following field error may be displayed:

   Error! Bookmark not defined.

Viewing field codes (ALT+F9) displays the following field:

   {autoindex "<Any text>" \* Mergeformat }

CAUSE

The document contained a DocVariable field that was inserted and saved from Word 98 and the document has been:

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

WORKAROUND

To retain the document variables, while in Word 98, use the following steps to save the document using the Microsoft Word 6.0/95 or the Rich Text Format converter:

1. Open the document in Word 98.

2. On the File menu, click Save As.

3. From the Save File As Type list in the Save As dialog box, select either

   "Word 6.0/95" or "Rich Text Format."

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q162602
   TITLE     : WD97: Questions About Saving in the Word 6.0/95 File Format

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

DocVariable Field Description

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.

For more information about document variable fields, click Contents And Index on the Help menu (or on the Balloon Help menu if you are using a version of the Macintosh operating system earlier than 8.0), click the Index button in Word Help, type the following text

   docvariable

and then click Show Topics. Select the "DOCVARIABLE field" topic, and click Go To. If you are unable to find the information you need, ask the Office Assistant.

REFERENCES

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for
               Applications

Additional query words: wordcon vb vba vbe
Keywords          : kbdtacode OffVBA kbmacroexample macword98 
Version           : MACINTOSH:98
Platform          : MACINTOSH
Hardware          : MAC
Issue type        : kbprb
Solution Type     : kbpending

Last Reviewed: February 15, 1999