1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Sub mail()
Dim i As Integer
Dim ol As Object, olmail As Object
Set ol = CreateObject("Outlook.Application")
Set olmail = ol.Application.CreateItem(olMailItem)
With olmail
i = ActiveCell.Row
.To = "smsmonitor@sogecoreunion.com "
.Subject = "Confirmation de rdv"
.HTMLBody = "GSM:0" & Cells(i, 8) & " <br/><br/>Je vous confirme le rendez-vous pour votre " & Cells(i, 3) & " à " & Cells(i, 11) & ",d'ici là, roulez prudement. Votre conseiller client " & Cells(i, 12) & "."
.Display
.Send
End With
End Sub |
Partager