code could be improved?

G

Geoff Cox

Hello,

The code below works in that it detects a text box with the
entrance/dissolve animation and changes it so that its appearance is
triggered by clicking on the oShB shape, and so will work with the
kiosk mode.

But! I have had to delete the animation and then re-apply it. Surely
this is not necessary?

Cheers

Geoff

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 oSh = .MainSequence(i).Shape
.MainSequence(i).Delete
Set oShB = oSl.Shapes.AddShape(msoShapeRectangle, 500, 200, _
100, 50)
Set oEffect = .InteractiveSequences.Add _
.AddEffect(Shape:=oSh, effectId:=msoAnimEffectDissolve, _
trigger:=msoAnimTriggerOnShapeClick)
oEffect.Timing.TriggerShape = oShB
End If
End If
Next i
End With
Next oSl
 

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