XL2002: VBA Error on Macro Startup If You Open Multiple Excel Instances with RefEdit Control (321286)
The information in this article applies to:
This article was previously published under Q321286 For a Microsoft Excel 2000 version of this article, see 320262.
SYMPTOMS
When you open a Microsoft Excel workbook (.xls) or add-in (.xla) that uses the RefEdit control, you may receive one of the following unhandled exception error messages in Microsoft Visual Basic for Applications (VBA) on the first line of code in the project:
Error -2147467259 (&H80004005) : "Unspecified error"
-or-
Automation Error: The process cannot access the file because it is being used by another process
The problem occurs if multiple instances (for example, four or five) of Excel are running. Each instance of Excel contains workbooks or add-ins that also use the RefEdit control, and all of the temporary locations that hold extenders already have open libraries by the same name (one for each instance of Excel that is using the RefEdit control).
CAUSE
When a Microsoft Visual Basic for Applications (VBA) project that contains the RefEdit control is loaded, VBA creates a control extender for the RefEdit type library. The formation of the control extender is similar to any control that you add to a UserForm. If multiple instances of Excel are running, Fm20.dll may fail while it attempts to create this extender. This failure can result in a VBA runtime error when your code is called.
RESOLUTIONA supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Office XP Public Update that contains this hotfix. To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site: NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
After the hotfix is installed, the following files will have the listed
attributes or later:
Date Time Version Size File name
--------------------------------------------------------
22-Mar-2002 16:38 2.1.9922.1 1,129,232 Fm20.dll
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 4/7/2006 |
---|
Keywords: | kbQFE KBHotfixServer kbbug kbfix kbOfficeXPPreSP2fix KB321286 |
---|
|