Sub EnvoiMailDevis()
Application.ScreenUpdating = False
Dim MaFeuille As Worksheet
Dim NbLigne As Integer
Dim DevisRng As Range
Dim MonFichier As String
Set DevisRng = ThisWorkbook.Sheets("DEVIS").Range("B1:F46")
Set MaFeuille = ThisWorkbook.Sheets("DEVIS")
MonFichier = ThisWorkbook.Path & "\DEVIS.pdf"
Application.ScreenUpdating = False
DevisRng.ExportAsFixedFormat Type:=xlTypePDF, Filename:=MonFichier, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
MaFeuille.Range("B1:F46").Select
ActiveWorkbook.EnvelopeVisible = True
With MaFeuille.MailEnvelope.Item
.To = MaFeuille.Range("F11").Value
.Subject = MaFeuille.Range("E1").Value
.Attachments.Add MonFichier
.send
End With
Kill MonFichier
MsgBox "Mail envoyé"
End Sub