Document.ContentControlBeforeStoreUpdate 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 updating the document's XML data store with the value of a content control.

Private Sub expression _ContentControlBeforeStoreUpdate(ContentControl, Content)

expression An expression that returns a Document object.

Parameters

Name

Required/Optional

Data Type

Description

ContentControl

Required

ContentControl

The content control being updated.

Content

Required

String

The content being stored for a control in the document data store. Use this parameter to change the XML data before sending the value to the XML data store.

Note Note

This event does not occur for repeating content controls.

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

Show: