Variables.DeleteVar



DeleteVar(Name As String) As Boolean

Parameters

Name As String
Name of the Variable to be deleted...
ED
avaliable
RT
not used

Remarks

This method is used to delete a variable by its name.

Sample:


Sub DeleteVariable()

Dim zVariables As Variables 'Object from type Variables

'Fill the objects
Set zVariables = MyWorkspace.ActiveDocument.Variables

'Deletes a variable called "Test_1"
Debug.Print "Deleted = " & zVariables.DeleteVar("Test_1")

End Sub

See Also

Variables