Salut les Kracks,
Je n'arrive pas à trouver la syntaxe pour envoyer des emails en CC et en BCC avec wb.SendMail:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 If Val(Application.Version) >= 12 Then If wb.FileFormat = 51 And wb.HasVBProject = True Then MsgBox "There is VBA code in this xlsx file, there will" & vbNewLine & _ "be no VBA code in the file you send. Save the" & vbNewLine & _ "file first as xlsm and then try the macro again.", vbInformation Exit Sub End If End If On Error Resume Next For I = 1 To 3 wb.SendMail Recipients:=Array("moije@prout.com","ellell@prout.com), _ Subject:="sapu" cc = "toitu@prout.com"'ne fonctionne pas?
D'avance...
Partager