<t>I have finally got it working.You can call functions written in VBA or from another addin by using the following code in an XLL. (Not a built in excel function)XlfExcel::Instance().Call(xlUDF,res2,2,XlfOper("mytest"),XlfOper(4.0));I knew it would be simple, as these things are once you know the a...