Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2013, 08:05 PM
Jamtart Jamtart is offline Master reset? Windows 7 64bit Master reset? Office 2010 64bit
Advanced Beginner
Master reset?
 
Join Date: Apr 2012
Posts: 53
Jamtart is on a distinguished road
Default Master reset?


I created a rather complex presentation where there a many triggers and animations. Ok, complex by my standard . But at a certain point I need to reset the slide back to square one, preferably with a very slight delay, like 1 second after I hit the reset. I need this so that the user can run through the demonstration again. Is such a feature possible
Reply With Quote
  #2  
Old 05-10-2013, 05:14 AM
JohnWilson JohnWilson is offline Master reset? Windows 7 64bit Master reset? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Without code you can place a slide before the complex one (ideally it should look like the completed complex one) Give it an auto transition of 1 second and make the button link to this slide. the animations should be reset when it goes back to the original slide.

In code try this:


Sub resetSlide()
Dim osld As Slide
Set osld = SlideShowWindows(1).View.Slide
delayMe(1)
SlideShowWindows(1).View.GotoSlide (osld.SlideIndex), resetSlide:=msoTrue
End Sub

Sub delayMe(lngDelay as Long)
Dim TimerEnd As Long
TimerEnd = Timer + lngDelay
Do While TimerEnd > Timer
DoEvents
Loop
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 05-10-2013, 12:18 PM
Jamtart Jamtart is offline Master reset? Windows 7 64bit Master reset? Office 2010 64bit
Advanced Beginner
Master reset?
 
Join Date: Apr 2012
Posts: 53
Jamtart is on a distinguished road
Default

Thanks John, I was actually very close to the transition method you stated. I modified my version as you suggested and it works perfectly, thank you so much. I will try using the code in another version too.
Reply With Quote
  #4  
Old 05-10-2013, 12:52 PM
JohnWilson JohnWilson is offline Master reset? Windows 7 64bit Master reset? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

No problem Gerry.
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #5  
Old 05-10-2013, 01:39 PM
Jamtart Jamtart is offline Master reset? Windows 7 64bit Master reset? Office 2010 64bit
Advanced Beginner
Master reset?
 
Join Date: Apr 2012
Posts: 53
Jamtart is on a distinguished road
Default

I am wondering if the code could be fine tuned a bit. I would like to be able to press the button that has the resetSlide code attached to it which is also used to Trigger a short animation (about 1 second) to allow the animation to complete BEFORE it resets.
Possible?
Reply With Quote
  #6  
Old 05-10-2013, 11:23 PM
JohnWilson JohnWilson is offline Master reset? Windows 7 64bit Master reset? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Sorry there's no simple way to do that.
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #7  
Old 05-11-2013, 05:09 AM
Jamtart Jamtart is offline Master reset? Windows 7 64bit Master reset? Office 2010 64bit
Advanced Beginner
Master reset?
 
Join Date: Apr 2012
Posts: 53
Jamtart is on a distinguished road
Default

I figured there would not be. Either of the the two methods, the code version or the slide transition, still look and act pretty dang good and both are very usable.
Thanks for all your assistance.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Master reset? Macro to reset settings Jennifer Murphy Word VBA 1 08-02-2012 04:12 PM
Reset Animations debraholloway PowerPoint 0 07-14-2011 09:22 PM
Reset start page? markg2 Excel 2 04-18-2010 06:54 AM
How To Reset The Defaults Settings Mixman77 Office 0 01-16-2010 02:42 PM
Reset on error kiwichico Word VBA 0 09-23-2008 08:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft