AddNext Method

Microsoft Word Visual Basic

Adds a NEXT field to a mail merge main document. Returns a MailMergeField object. A NEXT field advances to the next data record so that data from more than one record can be merged into the same merge document (for example, a sheet of mailing labels).

expression.AddNext(Range)

expression    Required. An expression that returns a MailMergeFields object.

Range    Required Range object. The location for the NEXT field.

Example

This example adds a NEXT field after the third MERGEFIELD field in Main.doc.

Documents("Main.doc").MailMerge.Fields(3).Select
Selection.Collapse Direction:=wdCollapseEnd
Documents("Main.doc").MailMerge.Fields.AddNext _
    Range:=Selection.Range