How to Create a Global User-Defined Function (151490)
The information in this article applies to:
- Microsoft Excel for Windows 95 7.0a
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q151490 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.
For information about using references to call user-defined functions,
please see the following article in the Microsoft Knowledge Base:
141288
How to Use a Custom Function in Another Workbook
However, 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.
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."
For more information about Installing Add-ins, click Search, or the Index
tab in Help and type:
For more information about User-defined Functions in Microsoft Excel 7.0,
click the Index tab in Help and type:
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbinfo kbProgramming KB151490 |
---|
|