UndoRecord.IsRecordingCustomRecord property (Word)

Returns a Boolean that specifies whether a custom undo action is being recorded. Read-only.

Syntax

expression. IsRecordingCustomRecord

expression A variable that represents an UndoRecord object.

Example

The following code example displays whether a custom undo action is currently being recorded. (For the full code see CustomRecordLevel.)

Dim objUndo As UndoRecord
Set objUndo = Application.UndoRecord
 
If objUndo.IsRecordingCustomRecord = False Then
    objUndo.StartCustomRecord ("My Custom Undo")
End If
'Custom undo actions here
objUndo.EndCustomRecord

See also

UndoRecord Object

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.