This documentation is archived and is not being maintained.

ValidationRule.Category Property (Visio)

Represents the text displayed in the Category column of the Issues window. Read/write.

Version Added: Visio 2010

expression .Category

expression A variable that represents a ValidationRule object.

Return Value


The length of the string assigned to the Category property cannot exceed 255 characters.

The following Visual Basic for Applications (VBA) example shows how to use the Category property to set the text of the Category column of the Issues window for a validation rule named "Unglued2DShape".

Set vsoValidationRule = vsoValidationRuleSet.Rules.Add("Unglued2DShape")
vsoValidationRule.Category = "Shapes"