UndoRecord.IsRecordingCustomRecord Property (Word)

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

Version Information

Version Added: Word 2010

Syntax

expression .IsRecordingCustomRecord

expression A variable that represents a UndoRecord object.

Example

The following code example displays whether a custom undo action is currently being recorded.

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

Concepts

UndoRecord Object

UndoRecord Object Members