on 07-28-2005 3:46 PM
Hi everyone,
I am a really new at trying to call COM from VBA.
Here is what I've done.
a) I creates a Class Library in C# with a really simple method.
b) I created a tlb and snk file using sn.exe, gacutil.exe, regasm.exe.
I checked that my class is located in \windir\assembly.
c) I opend my Outlook 2002 and created a macro.
d)In the Tools->References menu, I selected the tlb file.
e) here is the code of the VBA macro:
Sub Macro1()
Dim objAdd As New ClassLibrary1.Class1
End Sub
This compile.
But, when I try to know the methods in the objAdd object...there aren't.
This object should contain the Add method to add 2 numbers.
Can someone help me with this issue ?
Thanks a lot.
Are you sure you are in the right forum (or even on the right website for .Net questions)?
Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.