UndoRecord Object (Word)

Office 2013 and later

Contribute to this content

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

Provides an entry point into the undo stack.

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