ValidationIssues.Count property (Visio)

Returns the number of ValidationIssue objects in the collection. Read-only.

Syntax

expression.Count

expression A variable that represents a ValidationIssues object.

Return value

Long

Example

The following Visual Basic for Applications (VBA) example shows how to use the Count method to determine how many validation issues exist in the collection of validation issues in the active document.

Set vsoDocument = Visio.ActiveDocument 
Set vsoIssues = vsoDocument.Validation.Issues
intIssueTotal = vsoIssues.Count

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.