Sequence.ConvertToTextUnitEffect Method (PowerPoint)
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
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Effect |
Required |
Effect |
The animation effect to which the text unit effect applies. |
unitEffect |
Required |
How 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