Govert,
Thank you very much for your explanation. Sorry for my late reply because I have difficulty access google group from China. As a matter of fact I'm pretty new to the DNA world. There are tons of things I need to learn. Let me tell you what exactly I would like to do and maybe you can have a better solution.
I would like to measure the time of running any excel functions including UDF. The way how I do it right now is to get formula from the cell use following code:
string formulaText = (string)XlCall.Excel(XlCall.xlfGetCell, 41, formulaeRef);
and use following code to trigger the function:
object result = XlCall.Excel(XlCall.xlfEvaluate, formulaText);
That's where I got the problem because some of the formula use the get caller code but returns null when I call them this way.
Do you know there is anyway to get around it? I'm just thinking loud, is there a way to set the caller to excel before I call the functions? Or you have a better solution to time to functions?
Thank you very much for your help.
Jack