Partager via


UndoRecord.EndCustomRecord Method (Word)

Completes the creation of a custom undo record.

Version Information

Version Added: Word 2010

Syntax

expression .EndCustomRecord

expression A variable that represents an UndoRecord object.

Remarks

You use the UndoRecord.StartCustomRecord to initiate the creation of a custom undo record. To complete the creation of a custom undo record, you use the EndCustomRecord method.

Example

The following code example creates a custom undo record.

Sub TestUndo() 
Dim objUndo As UndoRecord 
 
Set objUndo = Application.UndoRecord 
objUndo.StartCustomRecord ("My Custom Undo") 
    'Add some actions here 
objUndo.EndCustomRecord 
     
End Sub 

See Also

Concepts

Working with the UndoRecord Object

UndoRecord Object

UndoRecord Object Members