Function Name Mystery !!

monirg

Well-known Member
Joined
Jan 11, 2005
Messages
629
Hello;

This maybe a trivial question but I'm curious to know what the experts think ... though it has no impact on the w/b functionality.

I've a UDF in a standard module: (please pay attention to the upper and lower case in the name)
Code:
Function MyImSeriesSum(M, X)
'..........my code
 MyImSeriesSum = mysum
End Function
On the w/s, the formula is entered into a cell as:
Code:
= MyImSeriesSum(A1, B1)
The formula is displayed on the formula bar as:
Code:
= MyIMSeriesSum(A1, B1)

Regardless of how the function name is entered in the formula: MYIMSERIESSUM, myimseriessum, mYiMsErIeSsUm , or whatever, XL insists in displaying the function name in the formula as MyIMSeriesSum no matter what!

If reference to a procedure name is automatically adjusted as far as the case is concerned, then why not displaying the actual Function name MyImSeriesSum ??

I've checked XL Help in case there might be a naming conflict. I couldn't find any.

Can someone please explain ??
Thank you for your insight.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
When you create a UDF, Excel automaticaly capitalizes the spreadsheet formula to match the capitalization of the first time that UDF was entered in a worksheet formula.

Open a new workbook and put this UDF in it

Code:
Function MyFtn() as Double
   MyFtn = 4
End Function

enter this formula in a cell =MYFTN()
enter this formula in a different cell =myftn()

The second formula should be changed to =MYFTN()

Open another new workbook and put the same UDF:
enter =MyFtn()
then (in a different cell) enter =myftn()

Spookey, ain't it?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,497
Members
448,967
Latest member
visheshkotha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top