Sub mailadress()
Dim Account As Object 'Outlook.Account
Compte = ".......@gmail.com"
Set Outapp = CreateObject("Outlook.Application")
With Outapp.createitem(0)
For Each Elem In Outapp.Session.Accounts
If Elem = Compte Then Set Account = Elem: Exit For
Next
If Account Is Nothing Then MsgBox Compte & " non trouvé", vbCritical: GoTo Exit_Sub
Set .SendUsingAccount = Account ' Attention: le Set est important
.To = "1111111111@yahoo.fr"
.CC = ""
.BCC = ""
.Subject = "Demandes de créneaux 2023 "
.Display
End With
Exit_Sub:
Set Outapp = Nothing
Set Account = Nothing
End Sub