Animation Property

Applies To

Font object.

Description

Returns or sets the type of animation applied to the font. Read/write Long.

Can be one of the following WdAnimation constants:

  • wdAnimationBlinkingBackground
  • wdAnimationLasVegasLights
  • wdAnimationMarchingBlackAnts
  • wdAnimationMarchingRedAnts
  • wdAnimationNone
  • wdAnimationShimmer
  • wdAnimationSparkleText

See Also

Font property, ShowAnimation property.

Example

This example animates the text in a new document.

Set newDoc = Documents.Add
With newDoc.Content
    .InsertAfter "This is a test of animation."
    .Font.Animation = wdAnimationLasVegasLights
End With
This example animates the selected text.

If Selection.Type = wdSelectionNormal Then
    Selection.Font.Animation = wdAnimationShimmer
Else
    MsgBox "You need to select some text."
End If