Field.Data property (Word)
Returns or sets data in an ADDIN field. Read/write String.
Syntax
expression. Data
expression A variable that represents a 'Field' object.
Remarks
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"
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for