MailMerge.ViewMailMergeFieldCodes Property

Determines if merge field names are displayed in a mail merge main document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Property ViewMailMergeFieldCodes As Integer
    Get
    Set
'Usage
Dim instance As MailMerge
Dim value As Integer

value = instance.ViewMailMergeFieldCodes

instance.ViewMailMergeFieldCodes = value
int ViewMailMergeFieldCodes { get; set; }

Property Value

Type: System.Int32

Remarks

This property returns True if merge field names are displayed in a mail merge main document, and False if information from the current data record is displayed.

If the active document isn't a mail merge main document, this property causes an error. To view merge field names or their results, set the ShowFieldCodes property to False.

See Also

Reference

MailMerge Interface

MailMerge Members

Microsoft.Office.Interop.Word Namespace