OFF97: Automation Error After Using RegClean 3.0 or 4.0

Last reviewed: March 17, 1998
Article ID: Q165861
The information in this article applies to:
  • Microsoft Excel 97 for Windows
  • Microsoft Word 97 for Windows
  • Microsoft Access 97 for Windows
  • Microsoft PowerPoint 97 for Windows
  • Microsoft Outlook 97 for Windows
  • Microsoft Visual Basic versions 3.0, 4.0

SYMPTOMS

When you run Visual Basic for Applications code that uses Automation to control any of the products listed at the beginning of this article, you may receive an error message that is similar to either of the following:

   Run-time error '424':
   Object required

    -or-

   Run-time error '-2147221168(80040150)':
   OLE Automation error

CAUSE

This problem may occur if you run RegClean, version 3.0 or 4.0, on your computer, and then attempt to run Visual Basic for Applications code that uses Automation to control another program.

This problem occurs when RegClean 3.0 or 4.0 removes the keys that are required to use Automation.

NOTE: The RegClean utility has been updated.

RESOLUTION

To resolve this problem, download and install a custom registry file that replaces keys that are removed by RegClean.

You can also download an updated version of RegClean 4.1. The updated version of RegClean prevents the problem from occurring. RegClean 4.1 does NOT remove the keys that are required to use Automation.

The following files are available for download from the Microsoft Software Library:

 ~ Idisp.exe (size: 16713 bytes) 
                (16 KB)

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in RegClean 4.1 for Windows 95.

MORE INFORMATION

The RegClean utility, which is included on the Microsoft Office 97 Resource Kit compact disc, is designed to analyze your registry. After RegClean analyzes the registry, it removes all corrupted, damaged, and/or unnecessary keys.

If you run RegClean 3.0 or 4.0 on your computer, it may remove the following set of registry keys:

   HKEY_CLASSES_ROOT\Interface\{00020400-0000-0000-C000-000000000046}

This set of keys is originally created in the registry by the Microsoft Windows 95 or Windows NT Setup program. Although these keys may be modified by the setup program for another program, they are not recreated by any other setup program. If these keys are removed from the registry, reinstalling programs, such as Microsoft Office 97, does NOT restore the keys.

Because these keys must be present to use Automation, you receive any of the error messages in this article if they are missing. You can restore the missing keys by downloading and installing the registry file mentioned in this article.

For more information about RegClean 4.1, please see the following articles in the Microsoft Knowledge Base:

   ARTICLE-ID: Q147769
   TITLE     : Updated Version of RegClean 4.1 Available


Additional query words: OFF97 createobject getobject OffInterop OffWinSetup
Keywords : kberrmsg kbprg
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb


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