XL2002: Automation Add-In Still Loaded After Add-In Check Box Cleared (283668)
The information in this article applies to:
This article was previously published under Q283668 SYMPTOMS
After you clear the check box for an Automation add-in in the Add-Ins dialog box, the user-defined functions in that add-in continue to work.
There is no way to remove an Automation add-in from the Automation Servers dialog box.
CAUSE
When you cancel the selection of an Automation add-in, the add-in is still registered with the operating system. User-defined functions in the add-in change to include the Program ID and continue to calculate properly.
For example, assume the following conditions are true:
- The Automation add-in has a Program ID of Project1.Class1.
- The Automation add-in contains a user-defined function called MyFunc.
- A cell on the worksheet contains =MyFunc().
If you clear the check box for the Automation add-in in the Add-Ins dialog box, the MyFunc function continues to calculate properly, and appears in the worksheet as =Project1.Class1.MyFunc().
RESOLUTION
To completely remove the Automation add-in, follow these steps:
- If Excel is currently running, quit Excel.
- Click Start, and then click Run.
- In the Open box, type regsvr32 /u path/file name, where
path/file name is the full path and file name of the add-in that you want to remove. For example, type the following:
regsvr32 /u "C:\Windows\Application Data\Microsoft\AddIns\MyAutomationAddIn.dll" - Click OK.
- Click OK when you receive the following or similar message:
DllUnregisterServer in C:\Windows\Application Data\Microsoft\AddIns\MyAutomationAddIn.dll succeeded.
- Start Microsoft Excel.
- On the Tools menu, click Add-Ins.
- Click to clear the check box next to the add-in.
NOTE: If the check box is already cleared, click to select it. - Click Yes when you receive the following or similar message:
Cannot find add-in. Delete from list?
NOTE: Although the add-in is no longer attached to Excel, the file for the add-in is still on the hard disk.
REFERENCESFor more information about add-ins, click Microsoft Excel Help on the Help menu, type about add-in programs in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For additional information about how to create an automation add-in, click the article number below
to view the article in the Microsoft Knowledge Base:
285337 HOWTO: Create a Visual Basic Automation Add-in for Excel 2002 Worksheet Functions
Modification Type: | Major | Last Reviewed: | 8/6/2002 |
---|
Keywords: | kbprb KB283668 |
---|
|