For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Addins > August 2005 > How to get the "right" instance of an application?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to get the "right" instance of an application?
TMan

2005-08-17, 5:06 pm

Hello,

I am familiar with the GetObject function in VB which will obtain a
reference to a running instance of an application. However, the GetObject
function is not specific in that instance (i.e. if there are multiple
instances of an application running, there is no way to guarantee which
instance will be obtained).

I am also familiar with the Tasks collection which is exposed in MS Word.
One can loop through these tasks and activate one if desired.

The above said, I was wondering if anyone knows how to:

A) Obtain a reference to a specific instance of an application

or;

B) Work with the tasks collection without using an instance of MS Word
(i.e. if I wanted to perform the same task from Excel, PowerPoint or
Outlook, how would I)?

Thanks & Regards,

Todd


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com