Bewerken

Delen via


CanRedo property

Indicates whether the most recent Undo can be reversed.

Syntax

object.CanRedo

The CanRedo property syntax has these parts:

Part Description
object Required. A valid object.

Return values

The CanRedo property return values are:

Value Description
True The most recent Undo can be reversed.
False The most recent Undo is irreversible.

Remarks

CanRedo is read-only.

To Redo an action means to reverse an Undo; it does not necessarily mean to repeat the last user action.

The following user actions illustrate using Undo and Redo:

  • Change the setting of an option button.
  • Enter text into a text box.
  • Click Undo. The text disappears from the text box.
  • Click Undo. The option button reverts to its previous setting.
  • Click Redo. The value of the option button changes.
  • Click Redo. The text reappears in the text box.

See also

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.