Automation, connect to running instance of Excel

T

Tobias Meier

Hi

I'm connecting to a running instance of excel using BindToMoniker:
System.Runtime.InteropServices.Marshal.BindToMoniker("Path_and_Name.xls")
The problem is, that there are more than one instances of Excel running on this machine.
When I'm testing it on WinXP it works fine - it always finds the right instance to connect to.
On W2K it does not connect to the instance with the desired workbook but it forces the one of the instances to reopen the this workbook again (Which is already open in another instance!)

Any ideas?
Is there another way to connect to a running Excel?

Thanks in advance, Tobi
 

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