on 2005 Jul 26 4:29 PM
Hi everyone,
Is there a way to call functions that I created in C# from a VBA program ?
Thnaks a lot.
Regards.
Yes, with COM interop: expose your C# class with a COM interface of type Dual or dispatch and register the assembly with regasm.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
a) Here are some links (or google for regasm vb tutorial)
http://www.vbrad.com/pf.asp?p=source/src_real_interop.htm
http://www.vbdotnetheaven.com/Code/May2004/AccessNetCompsFromVBIA.asp
http://www.programmersheaven.com/2/vbrad-Interop
b) No, you use local COM.
User | Count |
---|---|
57 | |
11 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.