A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Powerpoint
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

pause commands while displaying



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2008, 11:19 PM posted to microsoft.public.powerpoint
theintern
external usenet poster
 
Posts: 58
Default pause commands while displaying

I have a macro which inserts some objects, then displays the slideshow, then
deletes the objects. problem: it's not waiting till after the slideshow to
delete the objects. i'm guessing there's a simple way to tell it to wait
until the slideshow is over before continuing through the macro, just don't
know how. Do you?

thanks
scott
  #2  
Old July 10th, 2008, 01:35 PM posted to microsoft.public.powerpoint
theintern
external usenet poster
 
Posts: 58
Default pause commands while displaying

Sub Wait()
waitTime = 60
Start = Timer
While Timer Start + waitTime
DoEvents
Wend
End Sub

Sub Mainstuff()
"your code here"
Wait
"rest of code here"
End sub

"theintern" wrote:

I have a macro which inserts some objects, then displays the slideshow, then
deletes the objects. problem: it's not waiting till after the slideshow to
delete the objects. i'm guessing there's a simple way to tell it to wait
until the slideshow is over before continuing through the macro, just don't
know how. Do you?

thanks
scott

  #3  
Old July 10th, 2008, 03:37 PM posted to microsoft.public.powerpoint
Steve Rindsberg
external usenet poster
 
Posts: 9,366
Default pause commands while displaying

In article , Theintern
wrote:
I have a macro which inserts some objects, then displays the slideshow, then
deletes the objects. problem: it's not waiting till after the slideshow to
delete the objects. i'm guessing there's a simple way to tell it to wait
until the slideshow is over before continuing through the macro, just don't
know how. Do you?


As long as you're looking at event handlers, you could have the end slide show
event trigger the code that deletes the objects.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


  #4  
Old July 10th, 2008, 04:48 PM posted to microsoft.public.powerpoint
Chirag
external usenet poster
 
Posts: 595
Default pause commands while displaying

Look at OnSlideShowTerminate event at
http://officeone.mvps.org/vba/events_version.html

- Chirag

PowerShow - View multiple PowerPoint slide shows simultaneously
http://officeone.mvps.org/powershow/powershow.html

"theintern" wrote in message
...
I have a macro which inserts some objects, then displays the slideshow,
then
deletes the objects. problem: it's not waiting till after the slideshow
to
delete the objects. i'm guessing there's a simple way to tell it to wait
until the slideshow is over before continuing through the macro, just
don't
know how. Do you?

thanks
scott


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.