Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi

I want i simple script move or copy an attachmants from outlook to Sharepoint library

Thank you

What I have tried:

Hi

I want i simple script move or copy an attachmants from outlook to Sharepoint library

Thank you
Posted
Comments
ZurdoDev 20-Apr-17 8:04am    
A simple script cannot do that. You'll need to write more than a simple script.
Dave Kreskowiak 20-Apr-17 8:32am    
This site does not write code to order. You want to freelancer.com.

1 solution

Sub SaveAttachement(Item As Outlook.MailItem)
                Set attachs = Item.Attachments
 
        For Each attach In attachs
            file = attach.FileName
            attach.SaveAsFile "http://Sharepoint." & file   '<===  correspond au dossier dans lequel je veux sauvegarder les pièces jointes
        Next
End Sub


i was try abot this script but no work
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900