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 | MsoAnimTextUnitEffect | 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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for