Hi,
I've tried to put together some code to autodownload .pdf attachments sent to me in Outlook. What I need is for the code to read the name of the attachment, and depending on that, change the folder where it'll save the file. For example:
If the name of the file starts with "OT sheets", then save the file in "C:\Users\me\Desktop\OT Sheets CURRENT\"
If the name of the file starts with "Week", then save the file in "C:\Users\me\Desktop\Graphs"
etc.
Here's the code I have so far (note that I only put this together by combing google - I don't really understand how it works)
But I get the error "Compile Error - Type Mismatch" with line 3 highlighted.Please Login or Register to view this content.
Anyone know how to get this to work?
Thanks
Bookmarks