Syntax
InsertMergeField .MergeField = text
Remarks
Inserts a MERGEFIELD field that Word updates in each merge document during a mail merge. If the active document is not a main document, an error occurs.
Argument | Explanation |
.MergeField | A merge field name corresponding to the type of information you want to insert. Field names appear in the first record of the data source or in the header source (if a header source is attached to the main document). |
Example
This example inserts a MERGEFIELD field that is updated with the city name from the data source during a mail merge:
InsertMergeField .MergeField = "City"
See Also
InsertField, MailMergeInsertAsk, MailMergeInsertFillIn, MailMergeInsertIf, MailMergeInsertMergeRec, MailMergeInsertMergeSeq, MailMergeInsertNext, MailMergeInsertNextIf, MailMergeInsertSet, MailMergeInsertSkipIf