Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / October 2006

Tip: Looking for answers? Try searching our database.

code could be improved?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Geoff Cox - 26 Oct 2006 13:35 GMT
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
Shyam Pillai - 27 Oct 2006 03:50 GMT
This is necessary because there is a bug in the object model which prevent
changing the existing animation to a trigger type.

Signature

Regards,
Shyam Pillai

Toolbox
http://skp.mvps.org/toolbox

> Hello,
>
[quoted text clipped - 28 lines]
> End With
> Next oSl
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.