C#-DLL usable by VBA without framework?

  • Thread starter Thread starter Martin Brunner
  • Start date Start date
M

Martin Brunner

Hi there,

Is there a way to create a DLL, written in C#, that can be referenced/used by VBA without the
necessity of installing the Framework on all the "Excel-PCs"?

TIA, Martin@Vienna@Austria@Europe
 
Martin said:
Hi there,

Is there a way to create a DLL, written in C#, that can be
referenced/used by VBA without the necessity of installing the
Framework on all the "Excel-PCs"?

TIA, Martin@Vienna@Austria@Europe

No, AFAIK you would still need the .NET runtime on the client PC's.
 
Not possible. You can expose your C# .DLL as a COM object that can be
referenced from VBA, however, this only creates a CCW (COM Callable Wrapper)
under the hood your .DLL must still be managed by the .NET runtime which must
be present in order to work.

sbeskur@_no_spammy_hotmail.com
 
Back
Top