Font.Animation Property

Word Developer Reference

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

Syntax

expression.Animation

expression   Required. A variable that represents a Font object.

Example

This example animates the text in a new document.

Visual Basic for Applications
  Dim docNew As Document

Set docNew = Documents.Add

With docNew.Content .InsertAfter "This is a test of animation." .Font.Animation = wdAnimationLasVegasLights End With

This example animates the selected text.

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

See Also