Prev: A slider to adjust the speed of a cutom animation
Next: Text doesn't fit in the top shape of pyramid diagram
From: Mel on 10 Mar 2010 02:29 Does PowerPoint not have "Application.Wait" like Excel? Is there another way to pause code for a few seconds in PPT 2003/2007 while a small bat file runs? -Mel
From: David Marcovitz on 10 Mar 2010 10:45 On 3/10/10 2:29 AM, Mel wrote: > Does PowerPoint not have "Application.Wait" like Excel? Is there > another way to pause code for a few seconds in PPT 2003/2007 while a > small bat file runs? > > -Mel From Example 8.4 on my Web site (http://www.PowerfulPowerPoint.com/): Sub Wait() waitTime = 5 Start = Timer While Timer < Start + waitTime DoEvents Wend End Sub This will wait for 5 seconds. --David -- David M. Marcovitz Author of _Powerful PowerPoint for Educators_ http://www.PowerfulPowerPoint.com/ Microsoft PowerPoint MVP Associate Professor, Loyola University Maryland
From: Steve Rindsberg on 10 Mar 2010 11:11
In article <312255c7-711b-46a2-977e- ed55b9e151f5(a)g7g2000yqe.googlegroups.com>, Mel wrote: > Does PowerPoint not have "Application.Wait" like Excel? Is there > another way to pause code for a few seconds in PPT 2003/2007 while a > small bat file runs? Put your macro to Sleep http://www.pptfaq.com/FAQ00466.htm There are more sophisticated ways of doing it, like launching the bat file and monitoring its window, not proceeding until it closes. But if you know that your bat file will complete in a short time and don't mind waiting a few milliseconds extra here and there ... Sleep's the simplest, most reliable way to get the job done. ============================== PPT Frequently Asked Questions http://www.pptfaq.com/ PPTools add-ins for PowerPoint http://www.pptools.com/ |