Posted on 1998-07-08
Here I'm again with possible a stupid question, but I've got to know it and then again only stupid answers exist ;-)
Here I know how to do OLE with Excel, but I've always read about creating a variant which contains an instance of a Com object called IDispatch. Now, for the ease let's only talk about Variant (V) contains a 'thing' for talking to Excel.
This 'thing' can be created with CreateOleObject and then you can begin communicating with Excel. Well, when you create such a 'thing' an instance of Excel is created. But what if Excel is already opened? How can I create to this already opened Excel? If this is the case I don't have the 'thing' which refers to the open Excel! And if V doesn't contains such a 'thing' I can't communicate with this Excel.
So this is what I want to know :
If Excel is running, how do I get a handle ('thing') to it so I can communicate with it, like if I called a CreateOleObject.
Hope somebody got an answer to it.