First question: Are you using PPT 2002 or newer? Earlier versions didn't
have exit animations. If you are using a version that includes exit
animations, then ...
Is there a reason you need to do this via code? I would do it via triggered
entrance and exit animations. To do this, add your animations as normal.
Select the entrance animation, right click and select Timings. At the bottom
of the dialog, you will see a button marked Triggers. Click that button.
Change to Start on click of... and select your object. OK your way out and
repeat the process for the exit animation. Play the slide and you should be
able to test the triggers.

Signature
Kathy Jacobs, Microsoft MVP OneNote and PowerPoint
Author of Kathy Jacobs on PowerPoint
Get PowerPoint and OneNote information at www.onppt.com
I believe life is meant to be lived. But:
if we live without making a difference, it makes no difference that we lived
> Hello everyone,
>
[quoted text clipped - 26 lines]
> Sincerely,
> France
frankeegirl123@gmail.com - 07 Apr 2007 00:32 GMT
> First question: Are you using PPT 2002 or newer? Earlier versions didn't
> have exit animations. If you are using a version that includes exit
[quoted text clipped - 52 lines]
>
> - Show quoted text -
Thank you for your reply Ms. Jacobs.
I am running PPT 2002.
I think your way will work, but it involves a lot of clicks. I want to
be able to select an object, and just click a macro button to exit. I
am working on well over 3,000 slides (not all in the same file) some
of the slides will have exits, some will have entrances, some will
have both, some will have neither, some will have more entrances and
less exits ... blah blah bla. It would be really helpful to have the
code for have an item I select be exited when I click a macro button.
Many thanks,
France
John Wilson - 07 Apr 2007 12:38 GMT
I would go with Kathy's suggestion, there's no real need to use code.
If you must though you have to use the timeline not animation effects.
Something like
Sub Animexit()
Dim oEffect As Effect
Dim oshp As Shape
Set oshp = ActiveWindow.Selection.ShapeRange(1)
Set oEffect = ActiveWindow.Selection.SlideRange.TimeLine _
.MainSequence.AddEffect(oshp, msoAnimEffectCheckerboard, _
msoAnimateLevelNone, msoAnimTriggerOnPageClick)
oEffect.EffectParameters.Direction = msoAnimDirectionAcross
oEffect.Exit = msoTrue
End Sub

Signature
Amazing PPT Hints, Tips and Tutorials-http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk/ppttipshome.html
email john AT technologytrish.co.uk
> > First question: Are you using PPT 2002 or newer? Earlier versions didn't
> > have exit animations. If you are using a version that includes exit
[quoted text clipped - 67 lines]
> Many thanks,
> France