AddNext Method

Applies To

MailMergeFields collection object.

Description

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).

Syntax

expression.AddNext(Range)

expression Required. An expression that returns a MailMergeFields object.

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

See Also

AddIf method, AddNextIf method.

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