Document.ContentControlBeforeDelete Event (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

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

Occurs before removing a content control from a document.

Private Sub expression _ContentControlBeforeDelete(OldContentControl, InUndoRedo)

expression An expression that returns a Document object.

Parameters

Name

Required/Optional

Data Type

Description

OldContentControl

Required

ContentControl

The content control being deleted.

InUndoRedo

Required

Boolean

Specifies whether the removal is taking place as part an undo or redo action.

For information about using events with the Document object, see Using Events with the Document Object.

Show: