ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   .Net via COM Interop in VBA (https://www.excelbanter.com/excel-programming/392727-net-via-com-interop-vba.html)

Jimmah

.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




All times are GMT +1. The time now is 06:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com