Add AVI's and play automatically

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top