AnimationSettings.TextUnitEffect property (PowerPoint)
Indicates whether the text in the specified shape is animated paragraph by paragraph, word by word, or letter by letter. Read/write.
Syntax
expression. TextUnitEffect
expression A variable that represents an AnimationSettings object.
Return value
PpTextUnitEffect
Remarks
The value of the TextUnitEffect property can be one of these PpTextUnitEffect constants.
ppAnimateByCharacter |
ppAnimateByParagraph |
ppAnimateByWord |
ppAnimateUnitMixed |
For the TextUnitEffect property setting to take effect, the TextLevelEffect property for the specified shape must have a value other than ppAnimateLevelNone or ppAnimateByAllLevels, and the Animate property must be set to True.
Example
This example adds a title slide and title text to the active presentation and sets the title to be built letter by letter.
With ActivePresentation.Slides.Add(Index:=1, _
Layout:=ppLayoutTitleOnly).Shapes(1)
.TextFrame.TextRange.Text = "Sample title"
With .AnimationSettings
.Animate = True
.TextLevelEffect = ppAnimateByFirstLevel
.TextUnitEffect = ppAnimateByCharacter
.EntryEffect = ppEffectFlyFromLeft
End With
End With
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.