VBA- Application.Wait?

M

Mel

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
 
D

David Marcovitz

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
 

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