Table of contents
TOC
Collapse the table of content
Expand the table of content

Sequence.ConvertToTextUnitEffect Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Returns an Effect object that represents how text should be animated.

Syntax

expression. ConvertToTextUnitEffect( Effect, unitEffect )

expression A variable that represents a Sequence object.

Parameters

NameRequired/OptionalData TypeDescription
EffectRequiredEffectThe animation effect to which the text unit effect applies.
unitEffectRequiredMsoAnimTextUnitEffectHow the text should be animated.

Return Value

Effect

Example

This example adds an animation to a given shape and animates its accompanying text by character.

Sub NewTextUnitEffect()

    Dim shpFirst As Shape
    Dim tmlMain As TimeLine

    Set shpFirst = ActivePresentation.Slides(1).Shapes(1)
    Set tmlMain = ActivePresentation.Slides(1).TimeLine

    tmlMain.MainSequence.ConvertToTextUnitEffect _
        Effect:=tmlMain.MainSequence.AddEffect(Shape:=shpFirst, _
            EffectID:=msoAnimEffectRandomEffects), _
        unitEffect:=msoAnimTextUnitEffectByCharacter

End Sub

See also

Concepts

Sequence Object

© 2018 Microsoft