MailMerge.ViewMailMergeFieldCodes Property
Word Developer Reference |
True if merge field names are displayed in a mail merge main document. False if information from the current record is displayed. Read/write Long.
Syntax
expression.ViewMailMergeFieldCodes
expression An expression that returns a MailMerge object.
Remarks
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.
Example
This example displays the mail merge fields in Main.doc.
Visual Basic for Applications |
---|
|
If the active document is set up for a mail merge operation, this example displays the current record information in the main document.
Visual Basic for Applications |
---|
|
See Also