XL: How to Use a Custom Function in Another Workbook (141288)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel for Windows 5.0c
- Microsoft Excel 98 Macintosh Edition
- Microsoft Excel for the Macintosh 5.0
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q141288 SUMMARY
In Microsoft Excel, you can create custom Microsoft Visual Basic for
Applications functions to perform calculations. By default, these custom
functions are available to all worksheets in the workbook that contains the
custom function. Therefore, you can call them just as you call built-in
functions in Microsoft Excel. However, if you attempt to call a custom
function from outside of the workbook that contains the code, you must
first make a reference to the workbook that contains the custom function.
REFERENCESExcel 97
For more information about custom functions, from the Visual Basic Editor, click
Contents and Index on the Help menu, click the
Index tab in Help, type the following text
and then double-click the selected text to go to the "Writing a Function Procedure" topic. If
you are unable to find the information you need, ask the Office
Assistant. Excel 98 Macintosh Edition
For more information about custom functions, from the Visual Basic Editor, click the
Office Assistant, type function, click Search, and
then click to view "Writing a Function Procedure."Earlier Versions of Excel
For more information about custom functions, click Answer Wizard on the Help menu and type:
tell me how to create a user-defined function
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB141288 |
---|
|