1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Private Sub BDCEnvoiExcel_Click()
Dim MonOutlook As Object
Dim MonMessage As Object
Set MonOutlook = CreateObject("Outlook.Application")
Set MonMessage = MonOutlook.createitem(0)
MonMessage.to = "test@hotmail.com"
MonMessage.Attachments.Add MonExcel.ActiveWorkbook
MonMessage.Subject = "Frais de facturation"
Corps = "Bonjour,"
Corps = Corps & Chr(13) & Chr(10)
Corps = Corps & "Vous trouverez ci-joint le fichier contenant les frais de facturation."
MonMessage.body = Corps
MonMessage.send
Set MonOutlook = Nothing
End Sub |
Partager