Table of contents
Collapse the table of content
Expand the table of content

Validation.Validate Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Validates the specified validation rule set.


expression . Validate( RuleSet , Flags )

expression A variable that represents a Validation object.


NameRequired/OptionalData TypeDescription
RuleSetOptionalValidationRuleSetThe rule set to validate across the entire document.
FlagsOptionalVisValidationFlagsWhether to open the Issues window after validation.

Return Value



To validate all rule sets active in the document, pass Nothing for RuleSet .

Flags must be one of the following VisValidationFlags constants.

visValidationDefault0Validate document and open Issues window. The default.
visValidationNoOpenWindow1Validate document but do not open Issues window.

If you do not set the optional Flags parameter, Microsoft Visio applies the default behavior ( visValidationDefault ).

When you call the Validate method, Microsoft Visio checks whether the rule set is active before evaluating it. Visio does not display message boxes during the evalution, except to notify you if, when Flags is set to visValidationDefault , it finds no errors; and it displays the progress bar only if Application.ShowProgressBars is True .


The following Visual Basic for Applications (VBA) example shows how to use the Validate method to validate the active document.

' Validate the document.
Call Visio.ActiveDocument.Validation.Validate(,Visio.VisValidationFlags.visValidationDefault)
© 2018 Microsoft