The information in this article applies to:
SYMPTOMS
When you convert documents between Microsoft Word versions 6.x, 7.x, and
Microsoft Word 97, the contents of an Addin field may be lost or incomplete
when you open the document in Microsoft Word versions 6.x or 7.x using the
Word 97 Import Converter.
Case 1You insert an Addin field into a Microsoft Word 6.0 or 7.0 document and then you open that document in Microsoft Word 97.Case 2You insert an Addin field into a Microsoft Word 97 document, save the document as Word 6.0/95 or Rich Text Format (RTF), and then you open that document in Microsoft Word 6.0 or 7.0.Case 3You insert an Addin field into a Microsoft Word 97 document, and then you open that document in Microsoft Word 6.0 or 7.0 with the Microsoft Word 97 import converter (Wrd97cnv.exe).CAUSE
The conversion process changes the contents of the Addin field from ANSI to
Unicode.
RESOLUTIONCase 1To correct the problem in Case 1, install Microsoft Word 97 Service Release 1 (SR-1).For additional information about SR-1, please see the following article in the Microsoft Knowledge Base: NOTE: SR-1 does not correct the problems in Case 2 or Case 3.Q172475 OFF97: How to Obtain and Install MS Office 97 SR-1 Cases 1, 2, and 3Use one of the following methods:Method 1: Word 7.x and later - Custom Properties and the DocProperty fieldIn Word versions 7.x and later, you can create custom file properties that include any value you assign or that are linked to specific items in your file, such as a named cell in Microsoft Excel, a selected item in Microsoft PowerPoint, or a bookmark in Word. For example, in Excel, you can create a custom file property to use in all budget files that is linked to the cell that contains the budget total. Then you can search for all budget files with totals that exceed a certain value.To create custom file properties for the active document:
Method 2: Use document variables to store and retrieve valuesIn Word versions 6.x and later, you can use document variables to create and later retrieve values stored within your document.The following Visual Basic for Applications code example adds a document variable named "Customer Name" to the active document. The code then retrieves and displays the value and then inserts the value stored in the document variable at the current insertion point.
To later retrieve these document variable values in Word versions 6.x, 7.x,
you need to create a WordBasic macro. The following example shows how
to retrieve as well as set document variables using WordBasic.
NOTE: This macro does not run in Word 97 Visual Basic for Applications without modification. For information on how to do this in Word 97, see the Visual Basic for Applications macro example found earlier in this article.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. MORE INFORMATIONFor additional information, please see the following article in the Microsoft Knowledge Base: Q173707 OFF97: How to Run Sample Code from Knowledge Base Articles REFERENCESFor more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base: For information about Addin fields, please see the following articles in the Microsoft Knowledge Base:Q163435 VBA: Programming Resources for Visual Basic for Applications For more information about obtaining the Word 97 Import Converter for Word 6.0 and 7.0, please see the following article in the Microsoft Knowledge Base:Q140868 ADDIN Field Not Documented in Word 5.x Help For more information about saving documents in other file formats, click Contents And Index on the Help menu, click the Index tab in Word Help, type the following text:Q162214 WD: How to Obtain the Word 97-2000 Import Converter saving documentsand then double-click the selected text to go to the "Results of saving Word 97 documents in other file formats" topic. If you are unable to find the information you need, ask the Office Assistant. Additional query words: SR1 release1 vb vbe vba
Keywords : kbinterop kbdta kbdtacode kbfield word97 |
Last Reviewed: July 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |