> >> In article
> >> <ce89a735-0c52-4171-9ac5-50ddab7f1...@i29g2000prf.googlegroups.com>,
[quoted text clipped - 47 lines]
> You would want to close the PowerPoint instance that you started and not the
> one that you did not start.
I'd say the same thing but put it slightly differently:
If there's already an instance of PPT running, the user's doing something with
PPT already; you don't want to close PPT when you're done. Otherwise, you know
that you created the instance, so it's fairly certain that it's ok to close it.
(If the user starts working with PPT while you're automating it, all bets are
off, of course)
In other words, you can't tell the difference between an instance you started
and one you did not once the instance is started, but if you find that there's
already an instance when you know you didn't create it, you can be sure it's
not yours.
So, you typically, would write code like this:
> On Error Resume Next
>
[quoted text clipped - 21 lines]
> PowerShow - View multiple PowerPoint slide shows simultaneously
> http://officeone.mvps.org/powershow/powershow.html
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================