Document.Redo Method

Word Developer Reference

Redoes the last action that was undone (reverses the Undo method). Returns True if the actions were redone successfully.

Syntax

expression.Redo(Times)

expression   Required. A variable that represents a Document object.

Parameters

Name Required/Optional Data Type Description
Times Optional Variant The number of actions to be redone.

Return Value
Boolean

Example

This example redoes the last two actions in the Sales.doc redo list.

Visual Basic for Applications
  Documents("Sales.doc").Redo 2

This example redoes the last action in the active document. If the action is successfully redone, a message is displayed in the status bar.

Visual Basic for Applications
  On Error Resume Next
If ActiveDocument.Redo = False Then _
    StatusBar = "Redo was unsuccessful"

See Also