Article ID: 320262 - View products that this article applies to.
This article was previously published under Q320262
This article has been archived. It is offered "as is" and will no longer be updated.
When you open an Excel workbook (.xls file) or add-in (.xla file) 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 to run in the project.
Error -2147467259 (&H80004005) : "Unspecified error"
The problem occurs if multiple instances (for example, four or five) of Excel are running. Each instance 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).
Automation Error: The process cannot access the file because it is being used by another process
When a 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 eventually called.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.
If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=supportNote The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language. The English version of this fix should have the following file attributes or later:
After the hotfix is installed, the following files will have the listed attributes or later:
Date Time Size File Name --------------------------------------------------- 05-Apr-2002 18:18 1,382,268 Fm20.msp 05-Apr-2002 22:25 1,625,944 Fm20_admin.msp 06-Jul-2001 12:11 2,882 Readme.txt
Date Time Version Size File Name ------------------------------------------------------- 22-Mar-2002 16:38 2.1.9922.1 1,129,232 Fm20.dll
Microsoft has confirmed that this is a problem in Microsoft Excel 2000.
Because the error occurs before the macro code is run, Excel starts the VBA Integrated Development Environment (IDE) and stops at the function entry point. This is similar to the behavior that occurs if VBA detects a compile error.
Steps to Reproduce the Behavior
For additional information about control extenders in VBA, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/199830/EN-US/ )OFF2000: EXD Files Are Created When You Insert Controls
Contact us for more help
Connect with Answer Desk for expert help.