Bonjour,
J'ai utilisé la proposition de Greg.leo : https://forum.excel-pratique.com/excel/vba-envoyer-un-mail-avec-outlook-sans-object-library-71481
Sub SendOLMail_LateBound()
Dim oAPP As Object
Dim oItem As Object
' need to declare this constant as it has no meaning without
' the reference set to the Outlook library
Const olMailItem As Long = 0
' instantiate the Application - cannot use New without a reference
' so we must use CreateObject
Set oAPP = CreateObject("Outlook.Application")
' #######################################
' NOTE: THE REST OF THE CODE IS IDENTICAL
' #######################################
' create a new email
Set oItem = oAPP.CreateItem(olMailItem)
' set basic properties and display the email
With oItem
.To = "foo@bar.com"
.Subject = "this is a test"
.Body = "nothing to see here"
.Display
End With
End Sub
Mais cela ne fonctionne pas sur les profils "in line", il ne se passe rien. le code se déroule complètement, mais le message ne se crée pas.
Je me demande s'il ne faut pas préciser qu'Outlook est actif dans Firefox ?
Si c'est le cas, je ne sais pas faire. Est-ce que qq'1 peut m'aider ?