WD98: Insert Object Fails When Playing Back Recorded Macro

Last reviewed: March 3, 1998
Article ID: Q177100
The information in this article applies to:
  • Microsoft Word 98 Macintosh Edition

SYMPTOMS

When you record a macro that inserts a graphic file as an Object (on the Insert menu, click Object, and then click From File) and then play back the macro, you receive the following error message:

    The server application, source file, or item cannot be found.
    Make sure the application is properly installed, and that it
    has not been deleted, moved, or renamed.

followed by:

   Run-time error '4198': Command failed.

CAUSE

You are inserting an object for which there is no registered class.

WORKAROUND

While recording your macro, use Insert File instead of using Insert Object:

  1. On the Insert menu, click File.

  2. Navigate to the file you want to insert.

  3. Select the file, and then click OK.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: OFF98 vba
Keywords : kbmacro kbprg kbwordvba OffVBA macword98
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type : kbbug
Solution Type : kbworkaround


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: March 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.