Option Explicit
Sub SendEMailwithAttachments()
Dim ol As Object, myItem As Object
Dim chemin$, nom$
Application.ScreenUpdating = False
Set ol = CreateObject("outlook.application")
Set myItem = ol.CreateItem(olMailItem)
'Il faut d'abord activer la feuille à envoyer
ActiveSheet.Copy
chemin = "C:\Users\" & Environ("UserName") & "\Documents\"
nom = "Toto1.xls"
ActiveSheet.SaveAs Filename:=chemin & nom, FileFormat:=xlExcel8
ActiveWorkbook.Close True
myItem.To = "Toto@toto.com"
myItem.Subject = "Test Mail"
myItem.Body = "Hello Word." & Chr(13) & Chr(13) & "Bye All"
Set myAttachments = myItem.Attachments
myAttachments.Add chemin & nom
MsgBox "Now sending to " & myItem.To
myItem.display
Set ol = Nothing
End Sub