The original code won't work in PPT 2007 since AddTriggerEffect was only available from PPT 2010 onwards. The updated code below does the same such that it is PPT 2007 compatible. To make it work during presentation mode, refresh the slide after assigning
the animation as shown by David Marcovitz above. See this example too: http://skp.mvps.org/pptxp012.htm#interactive
Sub ManualTimer()
Dim AmountOfTime As Integer
Dim oSld As Slide
Dim oeff As Effect
Dim oShp As Shape
AmountOfTime = InputBox("Enter the amount of time in seconds", "Time")
Set oSld = ActivePresentation.Slides(1)
Set oShp = oSld.Shapes("Oval")
' Triggers are always set on the InteractiveSequence object
' I've specified the trigger to run when you click the same shape. You can change this to the desired shape.
Set oeff = oSld.TimeLine.InteractiveSequences.Add.AddEffect(oShp, msoAnimEffectWheel, , msoAnimTriggerOnShapeClick)
With oeff
' Specify the trigger shape here this is not needed if the trigger is on the same shape but I am doing it anyway.
.Timing.TriggerShape = oShp
' You cannot explicit set the direction for the wheel animation, you can specify the number of spokes though.
' Set the duration after you specify Exit else it will reset.
.EffectParameters.Amount = 1 '1 spoke
.Exit = msoTrue
.Timing.Duration = AmountOfTime
End With
End Sub