Bonjour,,
j'ai un soucis lors de l'envoi d'un mail avec pièce jointe
j'ai le code suivant qui me permet de choper le nom d'un fichier dont je ne connais pas tout le chemin d'avance
chemin = ThisWorkbook.Path & "\"
fichier = "Rapport au*"
S = Dir(chemin & fichier)
MsgBox (S)
si je tente un msgbox ca m'affiche bien le nom et chemin complet
seulement si je fais
.Attachments.Add (chemin & fichier)
ca me retourne erreur d'automation .. syntaxe fichier
une idée svp
mercu