Share via


Sequence.ConvertToBuildLevel Method (PowerPoint)

Changes the build level information for a specified animation effect. Returns an Effect object that represents the build level information.

Syntax

expression .ConvertToBuildLevel(Effect, Level)

expression A variable that represents a Sequence object.

Parameters

Name

Required/Optional

Data Type

Description

Effect

Required

Effect

The specified animation effect.

Level

Required

MsoAnimateByLevel

The animation build level.

Return Value

Effect

Remarks

Changing build level information for an effect invalidates any existing effects.

Example

The following example changes the build level information for an animation effect, making the original effect invalid.

Sub ConvertBuildLevel()

    Dim sldFirst As Slide

    Dim shpFirst As Shape

    Dim effFirst As Effect

    Dim effConvert As Effect



    Set sldFirst = ActiveWindow.Selection.SlideRange(1)

    Set shpFirst = sldFirst.Shapes(1)

    Set effFirst = sldFirst.TimeLine.MainSequence _

        .AddEffect(Shape:=shpFirst, EffectID:=msoAnimEffectAscend)

    Set effConvert = sldFirst.TimeLine.MainSequence _

        .ConvertToBuildLevel(Effect:=effFirst, _

        Level:=msoAnimateTextByFirstLevel)

End Sub

See Also

Concepts

Sequence Object

Sequence Object Members