MailMergeField.Code Property
Returns a Range object that represents a field's code.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property Code As Range
Get
Set
'Usage
Dim instance As MailMergeField
Dim value As Range
value = instance.Code
instance.Code = value
Range Code { get; set; }
Property Value
Type: Microsoft.Office.Interop.Word.Range
Remarks
A field's code is everything that's enclosed by the field characters ({ }) including the leading space and trailing space characters. You can access a field's code without changing the view from field results.