A
Alexander
Is there a possibility in VBA to get the Name of the Function were my code
is running and the Name of the Function who called my function
Example:
'-------------------------------------------------
Dim MyFunctionName
Dim MyFunctionCallerName
Function Step1 ()
Step2 ()
EndFunction
Function Step2 ()
MyFunctionName = GetFunctionInfo.Name
MyFunctionCallerName = GetFunctionInfo.Caller
EndFunction
'-----------------------------------------------
As a Result I would like to have:
MyFunctionName = "Step2"
MyFunctionCallerName = "Step1"
This works in JavaScript.
Does there exist something similar in VBA?
Thanks
Alexander
is running and the Name of the Function who called my function
Example:
'-------------------------------------------------
Dim MyFunctionName
Dim MyFunctionCallerName
Function Step1 ()
Step2 ()
EndFunction
Function Step2 ()
MyFunctionName = GetFunctionInfo.Name
MyFunctionCallerName = GetFunctionInfo.Caller
EndFunction
'-----------------------------------------------
As a Result I would like to have:
MyFunctionName = "Step2"
MyFunctionCallerName = "Step1"
This works in JavaScript.
Does there exist something similar in VBA?
Thanks
Alexander