Data Property
Applies To
Field object.
Description
Returns or sets data in an ADDIN field. Read/write String.
Note The data is not visible in the field code or result; it is only accessible by returning the value of the Data property. If the field isn't an ADDIN field, this property will cause an error.
See Also
AddIn object.
Example
This example inserts an ADDIN field at the insertion point in the active document and then sets the data for the field.
Selection.Collapse Direction:=wdCollapseStart
Set myField = ActiveDocument.Fields.Add(Range:=Selection.Range, _
Type:=wdFieldAddin)
myField.Data = "Hidden information"