cancel
Showing results for 
Search instead for 
Did you mean: 

VBA calling C#

david_fryda2
Participant
0 Kudos

Hi everyone,

Is there a way to call functions that I created in C# from a VBA program ?

Thnaks a lot.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

reiner_hille-doering
Active Contributor
0 Kudos

Yes, with COM interop: expose your C# class with a COM interface of type Dual or dispatch and register the assembly with regasm.

david_fryda2
Participant
0 Kudos

Hi Reiner,

Thanks for the quick answer.

Nice day.

PS :

a) By the way, do you have a tutorial about how creating COM interop ?

b) Should I use DCOM ?

Thanks!

Message was edited by: David Fryda

david_fryda2
Participant
0 Kudos

Thanks again Reiner.

Answers (0)