title: VBA Powerpoint auto next slide after wav audio file finishes playing
body: <p>Is there a way to insert an audio file in VBA code and how would I write the loop so that it advances the slide right after the audio file finishes playing until the slideshow is done? (i.e "Advancing to next slide in 3....2....1...." [changes to next slide])</p>
  
  <p>For example:</p>
  
  <pre><code>Sub AutoSlide()
  while '(slideshownotover)
        'wait 8 seconds
        'play given audio wav file
        ActivePresentation.SlideShowWindow.View.Next 'do this after audio finishes
  End Sub
  </code></pre>