The information in this article applies to:
SUMMARY
By default, a user-defined function is limited in scope to the workbook in
which the function resides. In other words, only sheets within the same
workbook can call a user-defined function. If you want to call a user-
defined function from another workbook, you must first make a reference to
the workbook that contains the user-defined function.
Q141288 How to Use a Custom Function in Another WorkbookHowever, to be able to call a user-defined function from any file, new or existing, you have to manually create a reference in each and every workbook. To make your user-defined functions globally available, you can group them into one workbook and make an Add-in. With a module sheet active, click Make Add-in on the Tools menu. When the Add-in is loaded into memory, your functions will be available to any file. MORE INFORMATION
The Add-in must be loaded into memory for your functions to be available.
The Add-in can be placed in your XLSTART folder (directory),(usually
"C:\MSOFFICE\EXCEL\XLSTART" (without the quotation marks) in Windows
versions, and in the Excel Startup Folder on the Macintosh, either
"System:Preferences:Excel Startup Folder (5)" or "System:Preferences:Excel
Startup Folder" (without the quotation marks), or loaded through using the
Add-in Manager.
Q108425 How to Create Add-in Application Name and Description REFERENCES
"Microsoft Excel Visual Basic User's Guide," version 5.0, Chapter 13,
"Creating an Add-in Application," and Chapter 3, "Creating User-Defined
Functions."
Add-insFor more information about User-defined Functions in Microsoft Excel 7.0, click the Index tab in Help and type: User-Defined Function Additional query words: 5.00, 5.00a, 5.00c, 7.00, 7.00a
Keywords : kbcode kbprg PgmHowto |
Last Reviewed: October 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |