Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Document.Redo Method

Office 2007
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

NameRequired/OptionalData TypeDescription
TimesOptionalVariantThe 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"



Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.