Josh,
Which version of PowerPoint do you wish to target, you code applies to
PowerPoint 97/2000 while your request to change animation properties on a
paragraph level requires PPT 2002 or later.
This is the code on PPT 2002 or later
Sub Example()
Dim oShp As Shape
Dim oSld As Slide
Dim oEffect As Effect
' Get reference to the shape
Set oShp = ActiveWindow.Selection.ShapeRange(1)
' Get reference to the slide on which the shape resides
Set oSld = oShp.Parent
With oSld.TimeLine.MainSequence
' Add the wipe effect to the shape
Set oEffect = .AddEffect(oShp, _
msoAnimEffectWipe, , msoAnimTriggerOnPageClick)
' Specify the direction of wipe, default is wipe down.
oEffect.EffectParameters.Direction = msoAnimDirectionRight
' Set it to build by first level, this breaks up the single effect
into
' multiple effects.
Call .ConvertToBuildLevel(oEffect, msoAnimateTextByFirstLevel)
' The oEffect reference still points to the first effect of
' the textbox, so change it to animation WithPrevious, the rest
' remain unchanged.
oEffect.Timing.TriggerType = msoAnimTriggerWithPrevious
End With
End Sub
--
Regards,
Shyam Pillai
Toolbox:
http://skp.mvps.org/toolbox
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Part of message missing in previous post
>
> I have many slides with bullet lists with custom animation as
> follows. Each line wipes from the left with the first wipe occuring
> as soon as the slide appears and each additional line appearing
> onclick
>
> I can set the master to wipe left on click or with previous but not
> oth. Is there a way to write a macro that will set this custom
> animation for each slide or modift the maste by coping to a slide and
> then altering the animation accordingly?
>
>
>
> Well I hope there is a coder out there that can help i made it this
> far. Code will Animate the way I want EXCEPT I WANT THE First Line of
> the bullet text to activate "with previoua" and the rest to activate
> on click
>
> CAN ANYONE HELP?
>
> Sub Macro2()
>
>
> Highlight a bulleted text list and then run this macro
>
>
> Dim ObjectName As String
> Dim SlideNumber As Integer
> SlideNumber = 0
> SlideNumber = ActiveWindow.View.Slide.SlideIndex
> ObjectName = ""
> ObjectName = ActiveWindow.Selection.ShapeRange.Name
> 'With ActiveWindow.Active
> With
> ActivePresentation.Slides(SlideNumber).Shapes(ObjectName).AnimationSettings
> .EntryEffect = ppEffectWipeRight
> .TextLevelEffect = ppAnimateByFirstLevel
> .AdvanceMode = ppAdvanceModeMixed
> End With
>
>
>
> DOES ANYONE KNOW anything abouth
>
> ppAdvanceModeMixed ??
>
>
>
>
>
>
>
>
>
>
> On Mon, 12 Sep 2005 13:04:12 -0500, "Echo S" <(E-Mail Removed)>
> wrote:
>
>>That's because the master slide applies animations to the *level* of the
>>bullet. So, given your example, all first-level bullets will come in with
>>previous.
>>
>>You'd have to do some jockeying on your slides and set up your second
>>level
>>bullets to look like primary bullets in order to do this.
>>
>>Probably it's easier if you just create one slide, apply the animation to
>>the slide as you want it, and then copy that slide and change the text.
>