end process if application closed

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
 
B

Bill Dilworth

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
..
 
T

theintern

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.
 
T

theintern

Sub Wait2()
waitTime2 = 305
start2 = Timer
While Timer < start2 + waitTime2
DoEvents
Wend
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top