How to share com component between C# and VBA

G

Gregory A. Beamer

Sridhar Yada wrote in
Have a C# app which makes a call to VBA macro using in-memory excel.

I am unable to share the data between C# and VBA macro by using the
same COM component.

Both C# and VBA invoked this COM component through interop layer.

Using the same COM component? What do you mean?

If you mean, both can call the same component, then it is normal you cannot
share, unless the component persists the state, as each one is opening the
COM component in their own process space.

To put this in an analogy, it would be like stating, I just called
Microsoft and a guy in France has called Microsoft, why am I not privy to
his phone call?

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 

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