Application.UndoRecord Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns an UndoRecord object that provides a custom entry point into the undo stack. Read-only.

expression .UndoRecord

expression A variable that represents an Application object.

Use the UndoRecord object to create and modify custom undo records in the Word undo stack.

The following code example instantiates an UndoRecord object.

Dim objUndo As UndoRecord 
Set objUndo = Application.UndoRecord