G
Gary McGill
I have a COM add-in written in c# that calls a VBA macro embedded in a Word
document. (It invokes the "Run" method of the application object using
InvokeMember).
I can successfully pass simple parameters (string, etc.) and receive a
simple return value but what I'd really like to do is pass & return a
Collection (as in, VBA's definition of a Collection). Is this possible? Is
it safe?
I tried adding a reference to MSVBVM60.DLL to my project, and that looked
like it would allow me to create objects of type VBA.Collection. However, I
don't know if this is the right way to do it. Also, my project wouldn't
build since I got an error about the VBA.Interop.dll not being strong-named.
Is there a PIA for the VBA stuff that I should be using? Should I be
creating my own interop DLL and strong-naming it myself?
All pointers gratefully received,
Gary
document. (It invokes the "Run" method of the application object using
InvokeMember).
I can successfully pass simple parameters (string, etc.) and receive a
simple return value but what I'd really like to do is pass & return a
Collection (as in, VBA's definition of a Collection). Is this possible? Is
it safe?
I tried adding a reference to MSVBVM60.DLL to my project, and that looked
like it would allow me to create objects of type VBA.Collection. However, I
don't know if this is the right way to do it. Also, my project wouldn't
build since I got an error about the VBA.Interop.dll not being strong-named.
Is there a PIA for the VBA stuff that I should be using? Should I be
creating my own interop DLL and strong-naming it myself?
All pointers gratefully received,
Gary