WD: Using INCLUDE and LINK Fields with Word for Windows

Last reviewed: February 5, 1998
Article ID: Q78400
The information in this article applies to:
  • Microsoft Word for Windows, versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, 6.0c
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows

SUMMARY

In Microsoft Word for Windows, if you want to insert data that is unlikely to change into a document from another application, you can use the INCLUDE field (or INCLUDETEXT field in Word 6.x-97). However, if the data is likely to need updating frequently, using dynamic data exchange (DDE) ensures that your document includes the most current information. The type of data you import determines which field is best to use. If the data is continually updated, such as stock information or charts from Microsoft Excel, use the LINK field with the \a switch (this switch updates the field automatically). If the data changes less frequently, use the LINK field without the \a switch and manually update the field.

MORE INFORMATION

The syntax for these three fields is similar. Compare the following:

   {LINK class-name file-name [place-reference] [format] [automatic]}
   {LINK class-name file-name [place-reference] [format]}
   {INCLUDE file-name [place-reference] [switches] [convert]}
   {INCLUDETEXT file-name [place-reference] [switches] [convert]}

   class-name        This is a description of the data being linked, for
                     example, ExcelWorksheet. These names can be found
                     in the [Embedding] section of the WIN.INI file.

   file-name         This indicates the name of file being referenced,
                     for example, C:\\EXCEL\\Sheet1.XLS.

   place-reference   This is an optional reference to a specific area in
                     the file, such as R1C1.

You can use either of the following two methods to insert a field:

Method 1

  1. Position the insertion point at the location where you want the linked item to appear.

  2. Press CTRL+F9 to insert the field characters ({}).

  3. Within the field characters, type the field command and the arguments you want to use, as in the following examples:

          LINK ExcelChart Excel C:\\Excel\\Chart1.xlc \p \a
          LINK ExcelChart Excel C:\\Excel\\Chart1.xlc \p
          INCLUDE C:\\Excel\\Sheet1.xls (Word 1.x-2.x)
          INCLUDETEXT C:\\Excel\\Sheet1.xls (Word 6.x-97)
    

  4. To display the field results, select the field, and press F9 (the update field key).

Method 2

  1. Position the insertion point at the location where you want the linked item to appear.

  2. From the Insert menu, choose Field.

  3. Select LINK or INCLUDE (INCLUDETEXT in Word 6.x-97) from the Insert Field Type box.

  4. In the Field Code box, position the insertion point to the right of the inserted field and type the following:

          ExcelChart Excel C:\\Excel\\Chart1.xlc (if you selected LINK)
    

    -or-

          C:\\Excel\\Document1.xls (if you selected INCLUDE or INCLUDETEXT)
    

  5. Choose the OK button.

  6. To display the field results, select the field, and press F9.

Reference(s):

"Microsoft Word for Windows User's Guide," pages 383, 686-690, 751-752


KBCategory: kbusage
KBSubcategory: kbfield
Additional query words: braces 2.0 2.0a 2.0a-CD 2.0b 2.0c
7.0 7.0a word95 winword 6.0 6.0a 6.0c word6 word7 include text word97

Keywords : kbfield kbualink97 kbusage
Version : 2.x 6.0 6.0a 6.0c 7.0 7.0a
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 5, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.