The information in this article applies to:
SUMMARY
When you enter a worksheet or macro sheet function in Microsoft Excel,
if the function is spelled correctly and if the argument syntax is
correct, the function will be converted to capital letters when you
press the ENTER key.
MORE INFORMATION
In Microsoft Excel 4.0 macro sheets, you can use the Define Name
dialog box to define a custom function. If you define a function with
the name, MyFunction, and then enter this function on a sheet, the
letters "M" and "F" will be displayed as uppercase letters. If you
instead define the function using all uppercase letters, MYFUNCTION,
it appears in all uppercase when you enter it on a sheet. Function
procedures in Visual Basic modules work in a similar manner. That is,
the case of a custom function name is determined by how it appears in
a variable declaration statement (if there is one) and in how it
appears in the procedure.
When you enter =cube(10) on a sheet, the function changes case according to the way the name appears in the variable declaration statement and in the procedure: =CUBE(10). Note that since Visual Basic procedures are compiled as you run them, if, after declaring the variable using all upper case, you enter the function procedure name using only an initial capital, Function Cube(Num), the case for the name in the variable declaration is changed to "Cube." And this is how it will appear when you enter it on a sheet. Additional query words:
Keywords : |
Last Reviewed: April 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |