The information in this article applies to:
SYMPTOMS
When you automatically load an add-in macro sheet, the add-in may appear to
fail to load. All of the add-in custom functions appear in the Formula
Paste Function dialog box, but none of its custom menu commands appear.
CAUSE
This problem occurs when the name __DemandLoad is defined in the add-in
sheet and either of the following is true:
MORE INFORMATION
When the name __DemandLoad (note that the string "DemandLoad" is preceded
by two underscores) is defined on the add-in macro sheet, the add-in file
is not actually loaded until you open it from the Open dialog box or until
one of its custom functions is entered into a sheet or is recalculated.
In essence, the add-in is loaded into memory upon demand. This saves time
and memory when you start Microsoft Excel.
__DemandLoadWhen this name is defined on the add-in sheet, the Add-in Manager adds an OPEN= line with the /F switch to the Microsoft Excel section in your settings file. The OPEN= line contains the path and name of your add-in macro. /F is a fast load option switch that, when used in conjunction with a file containing the defined name __DemandLoad, places all of the custom functions in the Paste Function dialog box. Note that if the add-in macro sheet does not contain the defined name, the add-in file is fully loaded when you start Microsoft Excel.The definition for __DemandLoad is not important. In the add-ins that are built into Microsoft Excel, it is commonly defined as the Boolean value, TRUE. When defined as FALSE, however, it functions the same. __CommandWhen this name is defined on the add-in sheet, the Add-in Manager adds your custom commands to specified menus when you start Microsoft Excel. Similar to __DemandLoad, the add-in macro sheet is not actually loaded until you select one of the commands. This saves time and memory when you start Microsoft Excel.The Add-in Manager adds the information necessary to add the custom menu commands to the Init Commands section of your settings file. __Command must refer to a horizontal array that contains the following information (only the first 4 are required):
The array can be a cell range or an array formula. Assume your add-in contains a SalesRpt macro that runs when you select Create Report from the Options menu. You can enter the following information in cells and define __Command as =$B$1:$E$1 (in the Refers To box),
-or- you can use an array formula as follows:
If you have more than one custom command to add, use sequential names beginning with __Command, then __Command1, __Command2, and so on. __MenuUse this defined name when your add-in creates a custom menu. The Add-in Manager adds the information necessary to add the custom menu to the Init Menus section of your settings file. Like the definition for __Command, __Menu must refer to a horizontal cell range or array formula containing the following information:
Again, if you have more than one custom menu to add, use sequential names beginning with __Menu, __Menu1, __Menu2, and so on. REFERENCES
"EXCELINI.TXT" Additional query words: 4.00a 5.0 excel.ini
Keywords : xladdins |
Last Reviewed: April 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |