WinWord: No Error Message for Invalid OLE Field

Last reviewed: February 5, 1998
Article ID: Q80211
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

SYMPTOMS

In Microsoft Word for Windows version 1.x and 2.x, no errormessage is displayed when an object linking and embedding (OLE) field code is invalid.

Word 6.0 will beep when an invalid EMBED field is used, but will not display an error message.

STATUS

Microsoft has confirmed this to be a problem in Word for Windows versions 2.0, 2.0a, 2.0a-CD, 2.0b, 2.0c, 6.0, 6.0a, and 6.0c. This problem was corrected in Word version 7.0 for Windows 95.

WORKAROUND

To find an invalid OLE field code, display field codes in your document (from the View menu, choose Field Codes). If an OLE field code is invalid, Word for Windows will display the following error message in place of the OLE object:

   Error! Not a valid embedded object.

Choosing the Field Codes command again removes the check mark beside Field Codes and allows you to see the results of the field codes.

MORE INFORMATION

If you use an invalid dynamic data exchange (DDE) link, all versios of Word for Windows will generate the message "Remote Data Not Accessible." This error appears after you try to update the field by pressing the F9 key. Updating an invalid OLE field does not produce a similar message.

Steps to Reproduce Problem

  1. Start Microsoft Excel version 3.0 or later, open a spreadsheet, and copy a small selection of the spreadsheet to the Clipboard.

  2. Start Word for Windows. From the Edit menu, choose Paste Special. In the Paste Special dialog box, select Excel Worksheet Object from the Data Type box. Choose the OK button.

  3. From the View menu, choose Field Codes (unless a check mark already appears beside the command). The field code for the object you just inserted should look similar to the following:

          {EMBED ExcelWorksheet \s  \* mergeformat}
    

  4. Remove "ExcelWorksheet" from the OLE field code.

  5. Press F9 to update the field.

Note that no error message appears.


KBCategory: kbole kbusage
KBSubcategory: kbfield
Additional query words: 2.0 6.0 6.0a 6.0c winword2 winword
word6 word6
Keywords : kbfield
Version : 2.0 2.0a 2.0a-CD 2.0b 2.0c
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.