Sub Macro1()
Dim iR As Integer
Dim i As Integer
Dim oDoc As Document
Dim DocName As String
Dim oDS As MailMergeDataSource
ActiveDocument.MailMerge.OpenDataSource Name:="C:\PUBLIPOSTAGE\essai.xlsx" '<----- ou est le fichier excel servant de base
' Affectation des objets
Set oDoc = ActiveDocument
Set oDS = oDoc.MailMerge.DataSource
iR = oDoc.MailMerge.DataSource.RecordCount '<---- nombre de ligne de la feuille excel base
For i = 1 To iR Step 2 '<----- envoi deux par deux fichiers publipostés
With ActiveDocument.MailMerge
.Destination = wdSendToEmail
.SuppressBlankLines = True
With .DataSource
.FirstRecord = i
.LastRecord = i + 1
End With
.Execute Pause:=False
End With
Call test '<---- pause entre 2 envois
Next i
MsgBox "fini"
End Sub