end process if application closed

  • Thread starter Thread starter theintern
  • Start date Start date
T

theintern

I have a macro running each time a certain presentation is opened. however,
if i close the presentation, and open again, it says it cannot be opened
because there is a dialogue box open, i.e. my macro is still running. i can
force it to stop by opening the Process tab in the Task Manager, then End
Process of POWERPNT.EXT. is there any logic i can put in the macro to end
the process if the application is closed?

thanks
scott
 
Are you using event trapping?


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 
To run the macro at the beginning yes, but once the macro is running there is
no event trapping. I just have it insert some photos and start the
presentation, then wait 5 minutes, delete all photos and close. problem is
that i want it to kill the process completely if during those 5 minutes the
user closes PP.
 
Sub Wait2()
waitTime2 = 305
start2 = Timer
While Timer < start2 + waitTime2
DoEvents
Wend
End Sub
 
Back
Top