Using an AppActivate "Microsoftl Word" statement would generate an
error and tell you that no instances of Word is open
If you know the title of the window that Word would contain, you could
determine if your report is still open:
AppActivate "Your Report Name - Microsoft Word"
On Fri, 13 Feb 2004 17:13:08 -0600, "scorpion53061" <Its the end of
the world as we know
it@here.com> wrote:
Just in case you understand me right I am creating a MS Word report they are
choosing to view.
I am trying to detect when they are no longer viewing it.(have it open, have
shut it down)
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OE*************@TK2MSFTNGP12.phx.gbl... * "scorpion53061" <Its the end of the world as we know it@here.com>
scripsit: > In some situations MS Word is started in another thread by the end user.
>
> I am trying to figure out how, if possible, to detect if the user hasshut > down MS Word so I can kill the thread and clean up the instance.
Thread? Process?
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>