Classement pièce jointe en vba
Fermé
Berorn
Messages postés
30
Date d'inscription
jeudi 16 février 2017
Statut
Membre
Dernière intervention
5 août 2022
-
8 juil. 2019 à 17:27
yg_be Messages postés 22722 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 25 avril 2024 - 9 juil. 2019 à 13:01
yg_be Messages postés 22722 Date d'inscription lundi 9 juin 2008 Statut Contributeur Dernière intervention 25 avril 2024 - 9 juil. 2019 à 13:01
A voir également:
- Application_newmailex
- 1 pièce jointe - Guide
- L'indice n'appartient pas à la sélection vba - Forum VB / VBA
- Logiciel classement photo - Guide
- Recuperer compte facebook sans piece d'identité ✓ - Forum Facebook
- One piece yabai - Forum Téléchargement
1 réponse
yg_be
Messages postés
22722
Date d'inscription
lundi 9 juin 2008
Statut
Contributeur
Dernière intervention
25 avril 2024
1 476
9 juil. 2019 à 13:01
9 juil. 2019 à 13:01
bonjour, suggestion:
Private Sub Application_NewMailEx(ByVal EntryIDCollection As String) Dim MonMail As Outlook.MailItem Dim myAttachments As Outlook.Attachments Dim unfichier As Attachment Set MonMail = Application.Session.GetItemFromID(EntryIDCollection) Set myAttachments = MonMail.Attachments If MonMail.SenderEmailAddress = "toto@hotmail.fr" Then For Each unfichier In myAttachments unfichier.SaveAsFile "C:\data\temp\" + unfichier.DisplayName Next unfichier End If End Sub