Export (0) Print
Expand All
D
Expand Minimize

Data Property

Office 2003

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.

Example

This example inserts an ADDIN field at the insertion point in the active document and then sets the data for the field.

Dim fldTemp As Field

Selection.Collapse Direction:=wdCollapseStart
Set fldTemp = _
    ActiveDocument.Fields.Add(Range:=Selection.Range, _
    Type:=wdFieldAddin)
fldTemp.Data = "Hidden information"
		


Applies to | Field Object

See Also | AddIn Object


Show:
© 2014 Microsoft