MailMergeFields.AddMergeRec(Range) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a MERGEREC field to a mail merge main document. Returns a MailMergeField object.
public:
Microsoft::Office::Interop::Word::MailMergeField ^ AddMergeRec(Microsoft::Office::Interop::Word::Range ^ Range);
public Microsoft.Office.Interop.Word.MailMergeField AddMergeRec (Microsoft.Office.Interop.Word.Range Range);
abstract member AddMergeRec : Microsoft.Office.Interop.Word.Range -> Microsoft.Office.Interop.Word.MailMergeField
Public Function AddMergeRec (Range As Range) As MailMergeField
Parameters
Returns
Remarks
A MERGEREC field inserts the number of the current data record (the position of the data record in the current query result) during a mail merge.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for