MailMergeFields.AddNext method (Word)

Adds a NEXT field to a mail merge main document. Returns a MailMergeField object.

Syntax

expression. AddNext( _Range_ )

expression Required. A variable that represents a 'MailMergeFields' collection.

Parameters

Name Required/Optional Data type Description
Range Required Range object The location for the NEXT field.

Return value

MailMergeField

Remarks

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

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

See also

MailMergeFields Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.