Automation error accessing a .NET assembly from VBA (Outlook 2003)

P

Pedro Ramilo

I have built a simple set of three classes in VB2005 Beta2 and attempted to
expose them to COM to be consumed from inside Outlook 2003 VBA.

I have set the COM Visible and Com Creatable properties to True on the class
and ran REGASM and REGASM with the /tlb option to register the assembly with
COM.
The assembly registered correctly although it did not expose the properties
that make use of Generics (which is not a problem since I created procedures
(SUB) to wrap up that functionality).

The assembly show up in the references dialog box and I can see the objects
in the Object browser.

The problem is that whenever I try to create an instance of the class I get
an Automation Error (this behaviour occours both with OL2003 VBA and VB6
SP6).

I am relativelly new to .NET and spent some and effort developping these
classes in .Net and I desperatelly need to get this working.

Can you please point me to some troubleshooting tips or sites to get around
this problem.

Thank you
Pedro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top