Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Fix for an error in custom Office solutions that occurs after you install MS12-027


View products that this article applies to.

Symptoms

After you install the update solution in Office applications that use controls from Mscomctl.ocx, you may receive one or more of the following error messages:

Object library invalid or contains references to object definitions that could not be found

Element not found

Cannot insert object

↑ Back to the top


Fix it for me

To enable or disable this fixit solution, click the Fix it button or link under the Enable heading. Click Run in the File Download dialog box, and then follow the steps in the Fix it wizard.

Note To fix this problem yourself, go to the "Fix it myself" section.



Enable
Fix this problem
Microsoft Fix it 50864
Notes
  • This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
  • If you are not on the computer that has the problem, you can save the automatic fix to a flash drive or to a CD, and then you can run it on the computer that has the problem.
FixItMyself

Fix it myself


To fix this problem yourself, use either of the following methods.

Method 1

Note In this procedure, the folders that are mentioned may or may not exist, depending on which application uses the custom solution and whether the custom solution is used on a document or in a UserForm.
  1. Exit all instances of Microsoft Excel.
  2. Click Start, type %temp% in the Open box, and then press Enter.
  3. In the folder that opens, delete the Excel8.0 folder and the VBE folder.
  4. Click Start, type %appdata%\microsoft\forms in the Open box, and then press Enter.
  5. In the folder that opens, delete the MSComctlLib.exd file.
  6. Close all the instances of Windows Explorer that you opened.

Method 2

  1. Click Start, type cmd in the Open box, and then press Enter.
  2. Type the following commands at the command prompt, and press Enter after each command:

    Note You can safely ignore any results that say "Could Not/cannot find."

    del %temp%\vbe\MSComctlLib.exd
    del %temp%\excel8.0\MSComctlLib.exd
    del %appdata%\microsoft\forms\MSComctlLib.exd
    del %temp%\word8.0\MSComctlLib.exd
    del %temp%\ppt11.0\MSComctlLib.exd
    del %temp%\ppt12.0\MSComctlLib.exd
    del %temp%\ppt14.0\MSComctlLib.exd
Note An administrator can use a script that contains these commands to delete the unnecessary files. For example, an administrator can copy the commands to a text file, save the file as a .bat file (for example, Scriptfile.bat), and then double-click the file to run it.

↑ Back to the top


More information


For more information, click the article number that applies to your version of Office:

2597112 MS12-027: Description of the security update for Microsoft Office 2003 Service Pack 3: April 10, 2012

2598041 MS12-027: Description of the security update for 2007 Microsoft Office system: April 10, 2012

2598039 MS12-027: Description of the security update for Office 2010: April 10, 2012

You can also find more information on the Excel team support blog.

↑ Back to the top


Keywords: KB2703186, kbfixme, kbmsifixme

↑ Back to the top

Article Info
Article ID : 2703186
Revision : 3
Created on : 5/23/2012
Published on : 5/23/2012
Exists online : False
Views : 526