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

ValidationRuleSet.Delete Method (Visio)

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

Deletes the ValidationRuleSet object from the document.


expression . Delete

expression A variable that represents a ValidationRuleSet object.

Return Value



Calling the Delete method also deletes all ValidationRule objects that are associated with the validation rule set.


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 Delete method to delete a validation rule set named "Fault Tree Analysis" from the active document.

' Delete a rule set from the active document.
Public Sub Delete_Example()

    Dim strValidationRuleSetNameU As String
    strValidationRuleSetNameU = "Fault Tree Analysis"


End Sub
© 2018 Microsoft