Is there any way to get the value of a function from within that function. Here is what I mean:
Given the function:
Public Function AddTwoNumbers(x as integer, y as integer)
AddTwoNumbers = x + y
End Function
--Can I do this in any way:
MsgBox "My function name is " & FunctionName
--Also, can I find out what function or procedure called the function? So I would do something like this:
MsgBox "My function called by " & CallingFunctionName
I hope I explained myself. Thanks in advance.
Given the function:
Public Function AddTwoNumbers(x as integer, y as integer)
AddTwoNumbers = x + y
End Function
--Can I do this in any way:
MsgBox "My function name is " & FunctionName
--Also, can I find out what function or procedure called the function? So I would do something like this:
MsgBox "My function called by " & CallingFunctionName
I hope I explained myself. Thanks in advance.