VarTypes.Item



Item(vNameOrID As Variant) As VarType

Parameters

vNameOrID As Variant
The datatype can be selected via its name (string) or via an ID (number).
ED
avaliable
RT
avaliable

Remarks

With this method you can access datatypes out of the list.

Sample:


Sub Item()

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 all settings from the "INT" datatype
Set zVarType = zVarTypes.Item("INT")

Debug.Print "Name of item = " & zVarType.Name

End Sub

See Also

VarTypes, VarType