User defined function

Thank you for your help, it works now! But I have also another question. In the "XlsFile" class there is also a method called "AddUserDefinedFunction" that takes an "TUserDefinedFunction" as an argument. Can you explain me the difference between "TUserDefinedFunction" and "TFlexCelUserFunction"?