|
ED
|
avaliable
|
RT
|
not used
|
This method deactivates array or structure elements.
Sub DeActivateSubItem() Dim zVariables As Variables 'Object from type Variables Dim zVariable As Variable 'Child object from type Variables Dim actSubItem As Boolean 'Status variable 'Fill the objects Set zVariables = MyWorkspace.ActiveDocument.Variables 'Array variable called "array" with some elements should be available Set zVariable = zVariables.Item("array") 'Element "array[2]" is deactivated actSubItem = zVariable.DeActivateSubItem("array[2]") Debug.Print "Activated = " & actSubItem End Sub