Table of contents
TOC
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.

Syntax

expression . Delete

expression A variable that represents a ValidationRuleSet object.

Return Value

Nothing

Remarks

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

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 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"

    ActiveDocument.Validation.RuleSets(strValidationRuleSetNameU).Delete

End Sub
© 2018 Microsoft