Document.Undo Method
Word Developer Reference |
Undoes the last action or a sequence of actions, which are displayed in the Undo list. Returns True if the actions were successfully undone.
Syntax
expression.Undo(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 undone. |
Return Value
Boolean
Example
This example undoes the last two actions taken in Sales.doc.
Visual Basic for Applications |
---|
|
This example undoes the last action. If the action is successfully undone, a message is displayed in the status bar.
Visual Basic for Applications |
---|
|
See Also