A Delphi DLL to work in Excel


I am trying to use a function in a DLL written in Delphi in an Excel
spreadsheet.  Unfortunatly, I get errors when I try to execute the Excel
macro.  The DLL works fine (I have called it from other Delphi
applications).  Can anyone give me some sample Delphi code which
compiles a simple DLL, and an Excel 5 or 7 spreadsheet which calls the
DLL and uses the function in in, so I have something to work with?

Kind Regards
Luke Kenny

Luke Kenny - l...@netspace.net.au
Melbourne, Australia - Phone +61-3-9802-0869