Article ID: 165080
Article Last Modified on 10/11/2006
Sub StartMediaObject()
' Change this number to represent the slide number on which
' you placed the media object.
Const SLIDE_NUM As Long = 1
' Add the number that has been assigned to your media object.
' Use the following steps to obtain the number:
' 1. Right-click the media object, click Custom Animation,
' and then click the Timing tab.
' 2. Identify the media object in the Slide Objects Without
' Animation list (the object is selected) and note the
' name given to the object. The name resembles "Object
' 1" or "Object 8."
' 3. Use the number of the object from step 2 in the macro
' code. For example, if your media object is listed as
' "Object 4," change the ShapeNum constant to the
' following:
' Const SHAPE_NUM As Long = 4
Const SHAPE_NUM As Long = 1
With ActivePresentation.Slides(SLIDE_NUM).Shapes(SHAPE_NUM)
.AnimationSettings.AdvanceTime = 0
.AnimationSettings.PlaySettings.PlayOnEntry = msoTrue
.AnimationSettings.PlaySettings.ActionVerb = "Play"
End With
' Refresh the slide. This forces the new object settings to
' take effect and the media object plays.
SlideShowWindows(1).View.GotoSlide SLIDE_NUM, msoFalse
End Sub
120802 Office: How to Add/Remove a Single Office Program or Component
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 97 8.00 kbmacro kbpptvba ppt8 vba vbe ppt97
Keywords: kbcode kbdtacode kbhowto kbmacro kbprogramming KB165080