Add AVI's and play automatically

  • Thread starter Thread starter Bill Butcher
  • Start date Start date
B

Bill Butcher

Is there a method for making an AVI begin playing
immediately after it is added to a slide programatically?
I would also like the avi to automatically hide as soon as
it is done playing. I am using the code listed below to
add the AVI to the slide, but it won't begin playing
automatically.

Thanks for any help you can offer

Bill



Sub PlayMovie()

Set TrainingClip = ActivePresentation.Slides
(5).Shapes.AddMediaObject(FileName:="C:\IW_Training\pe-
addremovesort.avi", Left:=20, Top:=20)
With TrainingClip.AnimationSettings.PlaySettings
.PlaySettings.PlayOnEntry = True
.PlaySettings.HideWhileNotPlaying = True
End With

End Sub
 
Back
Top