View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jimmah Jimmah is offline
external usenet poster
 
Posts: 2
Default .Net via COM Interop in VBA

Hi there,
I'm writing a C# .Net assembly, and I need to use this in Excel. I've
exposed the objects, methods and properties via COM Interop and can
see them all in VBA.

However, I have two Collection objects (which inherit from .Net's
CollectionBase class).

I have:
EventCollection [Which is a collection of my Event objects]
MeetingCollection [Which is a collection of my Meeting objects]

I can instantiate and use everything on my Event and Meeting objects,
but when I try to add a Meeting or Event object to its relevant
collection I get "Object does not support this method".

Does anyone have any idea why this is happening and if so, do they
have a workaround for it?

I need to able to do this as I need to pass these collections back to
my DLL.

Thanks,
James Simm