Microsoft KB Archive/295351

= XL2002: &quot;Run-Time Error 339&quot; Error Message When You Add a Control to a Workbook =

PSS ID Number: 295351

Article Last Modified on 12/11/2002

-

The information in this article applies to:


 * Microsoft Excel 2002

-



This article was previously published under Q295351



SYMPTOMS
When you attempt to add an add-in or a control to a Microsoft Excel workbook, you may receive an error message similar to the following:

Run-time error '339' Component 'COMCTL32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid.



CAUSE
This behavior can occur if both of the following conditions are true:
 * The add-in or control requires the ActiveX control Comctl32.ocx.

-and-
 * Comctl32.ocx is not a registered control.



WORKAROUND
To work around this issue, contact the vendor of the control for information about obtaining a new version of the control that installs Comctl32.ocx or does not require Comctl32.ocx.



MORE INFORMATION
Comctl32.ocx is installed by Microsoft Office 2000. Microsoft Office XP removes this control when upgrading from Office 2000, because the control is no longer used by Office programs.

Additional query words: XL2002 prb

Keywords: kbdta kberrmsg kbprb KB295351

Technology: kbExcel2002 kbExcel2002Search kbExcelSearch kbExcelWinSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.