kenshynn
Messages postés2Date d'inscriptionmardi 7 octobre 2003StatutMembreDernière intervention 8 octobre 2003 8 oct. 2003 à 10:56
Après pas mal de recherche sur le net et personnelle, j'ai obtenue une alternative à mon problème. Avoir une macro quand on ouvre un mail permettant d'enregistrer toutes les pièces jointes dans une répertoire indiqué dans la macro.
--------------------------
Sub enregPieceJointe()
Dim i As Integer
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.ActiveInspector.CurrentItem
Set myAttachments = myItem.Attachments
If myAttachments.Count > 0 Then
For i = 1 To myAttachments.Count
myAttachments.Item(i).SaveAsFile "P:" & _
myAttachments.Item(i).DisplayName
Next i
End If