Outlook 2010 How to Copy Outlook Attachment to a Specific Folder?

Outlook version
Outlook 2010 32 bit
Email Account
POP3
#1
The attached VBA macro works with Outlook 2010 Rules, saving the attachment in messages that meet the condition of the rule. The attachment is supposed to go into "My Documents". Since there is no "My Documents" folder in Windows 10, the attachment is being saved to the "Attachments" folder on my "D:" drive (my "Documents" folder has been moved to the "D:" drive).

Instead of saving attachments to the "My Documents" or "Documents" folder, I would like the macro to save to a different folder with a very specific location, that being: C:/MarinaPro/ResScheduler.

VBA is totally new to me and I can't figure how to get it done.
 

Attachments

Outlook version
Outlook 2010 32 bit
Email Account
POP3
#3
Change this:
strfolderpath = CreateObject("WScript.Shell").SpecialFolders(16)
strfolderpath = strfolderpath & "\Attachments\"

to
strfolderpath = "c:\new folder\Attachments\"
Thanks Diane, this works well and is the solution I came up with just before I got your post.
 
Top