G
Geoff Cox
Hello,
I cannot see how to refer to the already exisiting shape when it comes
to the trigger line. Bellow I am using
set oSh = MainSequence(i) ******
and then oSh in the trigger line, but this is obviously wrong. How do
I refer to it?
Thanks
Geoff
For Each oSl In ActivePresentation.Slides
ActiveWindow.View.GotoSlide (oSl.SlideIndex)
With oSl.TimeLine
For i = .MainSequence.Count To 1 Step -1
If .MainSequence(i).Shape.Type = msoTextBox Then
If .MainSequence(i).Shape.AnimationSettings _
.EntryEffect = ppEffectDissolve Then
Set oShB = oSl.Shapes.AddShape(msoShapeRectangle,
_500, 200, 100, 50)
set oSh = MainSequence(i) ******
Set oEffect = .InteractiveSequences.Add _
.AddEffect(Shape:= oSh,_
effectId:=ppEffectDissolve, _
trigger:=msoAnimTriggerOnShapeClick)
oEffect.Timing.TriggerShape = oShB
End If
End If
Next i
End With
Next oSl
I cannot see how to refer to the already exisiting shape when it comes
to the trigger line. Bellow I am using
set oSh = MainSequence(i) ******
and then oSh in the trigger line, but this is obviously wrong. How do
I refer to it?
Thanks
Geoff
For Each oSl In ActivePresentation.Slides
ActiveWindow.View.GotoSlide (oSl.SlideIndex)
With oSl.TimeLine
For i = .MainSequence.Count To 1 Step -1
If .MainSequence(i).Shape.Type = msoTextBox Then
If .MainSequence(i).Shape.AnimationSettings _
.EntryEffect = ppEffectDissolve Then
Set oShB = oSl.Shapes.AddShape(msoShapeRectangle,
_500, 200, 100, 50)
set oSh = MainSequence(i) ******
Set oEffect = .InteractiveSequences.Add _
.AddEffect(Shape:= oSh,_
effectId:=ppEffectDissolve, _
trigger:=msoAnimTriggerOnShapeClick)
oEffect.Timing.TriggerShape = oShB
End If
End If
Next i
End With
Next oSl