|
ED
|
avaliable
|
RT
|
not used
|
With this method you can delete an item from a structure datatype.
Sub DeleteSubItem() Dim zVarTypes As VarTypes 'Object from type VarTypes Dim zVarType As VarType 'Child object from type VarTypes 'Fill the objects Set zVarTypes = MyWorkspace.ActiveDocument.VarTypes 'Read the own created structure datatype "structure" from the list Set zVarType = zVarTypes.Item("structure") 'Delete an item called "element_1" from the structure datatype Debug.Print "Sub item has been deleted = " & zVarType.DeleteSubItem("element_1") End Sub