title: A macro to set a particular transition between powerpoint slides before go to the next slide
body: <p>I'm working on a Slideshow where all the slides have set the "Push from Left" transition. I'm going to insert in every slide a button to go back to the previous one, and just when the button is pressed I'd like to switch the transition to "Push from Right", go to the previous slide, then set the transition to "Push from Left" again.
  I wrote this, but it does not work:</p>
  
  <pre><code>Sub previousslide()
  With ActivePresentation.SlideShowWindow.View
      .Slide.SlideShowTransition.EntryEffect = ppEffectPushRight
      .GotoSlide (ActivePresentation.SlideShowWindow.View.Slide.SlideIndex - 1)
      .Slide.SlideShowTransition.EntryEffect = ppEffectPushLeft
  End Sub
  </code></pre>
  
  <p>Thanks</p>