Thanks for your replies NickHK and govert.
Special thanks go to you govert, for having written the wonderful
ExcelDna. I've had a look at your source code and the work you've done
is robust and impressive by any standard!
Currently, ExcelDna is my fallback. Its only drawbacks are that it
exposes my code to tampering by end clients and that it requires me to
distribute a few additional dlls. I would still rather have a my
deliverable consist of a single installable XLL file.
I was surprised to see how much work you had to put into ExcelDna to
register a new C# user-defined function into Excel. How come VSTO
doesn't supply this functionality? Maybe it does so only for Excel
2007? How come it's so hard to hook up .net code into MS Excel?
Regards,
urig
On Jan 24, 2:40 pm, govert <govert.2kx...@NoSpamPleaze.com> wrote:
> Hi Urig,
>
> Using 'ExcelDna' (http://exceldna.typepad.com) does not mean you have
> to create or compile any C++ code. Your user-defined functions, written
> in C# or VB.NET, can be either directly in a text-based script file, or
> can be in a compiled library. You have to write nothing more than the
> implementation of your functions. The ExcelDna library automatically
> exposes these functions and macros to Excel.
>
> VSTO does not help with creating user-defined functions for Excel.
>
> An alternative approach which does not require any third-party library,
> is to make a COM Automation Add-In. You can find some details on
> 'CodeProject' (http://www.codeproject.com/dotnet/excelnetauto.asp).
>
> Regards,
> Govert
>
> --
> govert
> ------------------------------------------------------------------------
> govert's Profile:http://www.officehelp.in/member.php?userid=6221
> View this thread:http://www.officehelp.in/showthread.php?t=1327494
>
> Posted from -http://www.officehelp.in