Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.18 KB

Publisher.MailMergeDataSource.FirstRecord.md

File metadata and controls

45 lines (30 loc) · 1.18 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
MailMergeDataSource.FirstRecord property (Publisher)
vbapb10.chm6291464
vbapb10.chm6291464
Publisher.MailMergeDataSource.FirstRecord
e6eefea9-b353-27ff-d8e4-dc135c0c4665
06/11/2019
medium

MailMergeDataSource.FirstRecord property (Publisher)

Returns or sets a Long that represents the number of the first record to be merged in a mail merge or catalog merge operation. Read/write.

Syntax

expression.FirstRecord

expression A variable that represents a MailMergeDataSource object.

Return value

Long

Example

This example sets the active record as the first record to be merged, and then merges three records ending with the record that is two records forward in the data source. This example assumes that the active publication is a mail merge document.

Sub RecordOne() 
 With ActiveDocument.MailMerge 
 .DataSource.FirstRecord = .DataSource.ActiveRecord 
 .DataSource.LastRecord = .DataSource.ActiveRecord + 2 
 .Execute Pause:=True 
 End With 
End Sub

[!includeSupport and feedback]