AutomaticValidation Property

Microsoft Word Visual Basic

AutomaticValidation Property

Returns a Boolean that represents whether Microsoft Word will validate the XML in a document as a user types. Corresponds to the Validate document against attached schemas check box in the XML Options dialog box. True indicates that Word performs real-time validation. False disables real-time validation.

expression.AutomaticValidation

expression    Required. An expression that returns an XMLSchemaReferences collection.

Example

The following example disables validation of XML for the active document.

    ActiveDocument.XMLSchemaReferences _
    .AutomaticValidation = False