Private Sub CommandButton1_Click()
Dim Mail As Variant
Dim ligne As Integer
Set Mail = CreateObject("Outlook.Application")
Set shc = Sheets("candidatures")
derligne = shc.Cells(1, 1).End(4).Row
For ligne = 2 To derligne
If Cells(ligne, "R") = "" Then '-- si la cellule est vide
With Mail.CreateItem(olMailItem)
.Subject = "Candidature " & Range("j" & ligne)
.To = Sheets("candidatures").Range("J" & ligne)
.Body = Sheets("textes").Range("B2")
.Display
'.Send
End With
Cells(ligne, "R") = Now '-affiche date et heure
End If
Next ligne
End Sub