Arnaud -- Charte du forum : http://www.mpfa.info/ Recherche dans les archives : http://groups.google.fr/group/microsoft.public.fr.access?hl=fr
clemay01
**** Ajouter la librairie Outlook ****
Dim objOutlook As Outlook.Application 'Objet Outlook Dim objMsg As Outlook.MailItem 'Message Outlook Dim objAttach As Outlook.Attachments 'Le fichier a attacher
'**************************** '-- Ouverture de Outlook -- '-- Creation d'un message -- '-- Attache le fichier PDF -- '**************************** Set objOutlook = New Outlook.Application Set objMsg = objOutlook.CreateItem(olMailItem) Set objAttach = objMsg.Attachments objAttach.Add "c:winnttemp" & as_nom_etat
objMsg.To = "suzanne"
'******************************** '-- Affiche le message Outlook -- '******************************** objMsg.Display
**** Ajouter la librairie Outlook ****
Dim objOutlook As Outlook.Application 'Objet
Outlook
Dim objMsg As Outlook.MailItem 'Message
Outlook
Dim objAttach As Outlook.Attachments 'Le fichier
a attacher
'****************************
'-- Ouverture de Outlook --
'-- Creation d'un message --
'-- Attache le fichier PDF --
'****************************
Set objOutlook = New Outlook.Application
Set objMsg = objOutlook.CreateItem(olMailItem)
Set objAttach = objMsg.Attachments
objAttach.Add "c:winnttemp" & as_nom_etat
objMsg.To = "suzanne"
'********************************
'-- Affiche le message Outlook --
'********************************
objMsg.Display
Dim objOutlook As Outlook.Application 'Objet Outlook Dim objMsg As Outlook.MailItem 'Message Outlook Dim objAttach As Outlook.Attachments 'Le fichier a attacher
'**************************** '-- Ouverture de Outlook -- '-- Creation d'un message -- '-- Attache le fichier PDF -- '**************************** Set objOutlook = New Outlook.Application Set objMsg = objOutlook.CreateItem(olMailItem) Set objAttach = objMsg.Attachments objAttach.Add "c:winnttemp" & as_nom_etat
objMsg.To = "suzanne"
'******************************** '-- Affiche le message Outlook -- '******************************** objMsg.Display