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

Article translations Article translations
Article ID: 2703186 - View products that this article applies to.
Expand all | Collapse all

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

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.



Collapse this tableExpand this table
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.

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.

Properties

Article ID: 2703186 - Last Review: May 23, 2012 - Revision: 3.0
APPLIES TO
  • Microsoft Office Excel 2003
  • Microsoft Office PowerPoint 2003
  • Microsoft Office Word 2003
  • Microsoft Office Excel 2007
  • Microsoft Office PowerPoint 2007
  • Microsoft Office Word 2007
  • Microsoft Excel 2010
  • Microsoft PowerPoint 2010
  • Microsoft Word 2010
Keywords: 
kbmsifixme kbfixme KB2703186

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com