UndoRecord.IsRecordingCustomRecord property (Word)
Returns a Boolean that specifies whether a custom undo action is being recorded. Read-only.
expression A variable that represents an UndoRecord object.
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
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.