ValidationRuleSet.Delete method (Visio)
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 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
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for