Muokkaa

Jaa


ValidationIssues.Clear method (Visio)

Removes all ValidationIssue objects from the ValidationRules collection of the document.

Syntax

expression.Clear

expression A variable that represents a ValidationIssues object.

Return value

Nothing

Remarks

Calling the Clear method also resets the Validation.LastValidatedDate property value to 0 (zero).

Example

The following sample code is based on code provided by: David Parker

The following Visual Basic for Applications (VBA) example shows how to use the Clear method to clear all validation issues from the active document.


Public Sub Clear_Example()

    ActiveDocument.Validation.Issues.Clear
    
End Sub

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.