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

Status
Not open for further replies.

geofferyh

Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
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

geofferyh

Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
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.
 

9MilesLong

New Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
Hello,

I'm new to this forum and came across this post. It look similar to what I need to accomplish but I still need some assistance on how to do it since I don't have much knowledge in this field.

Basically I inherited this from somebody that is no longer with my company. There used to be a job that sends out an email with an attachment. That attachment will then be copied to a network folder - \\NetworkFolder\NetworkFolderSubFolder\Imports\Import\
After the attachment gets copied. The email will be deleted.

My challenge is how can I get this to work? It used to work for a couple of years and for some reason it didn't. Also this email is sent to a shared email address and if I need to create a rule for this, it also need to be running on its own without intervention.

Thank you in advance.
~Louie
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
C Copy Outlook contact field value to another field Outlook VBA and Custom Forms 1
J Copy to calendar function no longer working in outlook 365 Using Outlook 5
B Outlook Business Contact Manager with SQL to Excel, User Defined Fields in BCM don't sync in SQL. Can I use VBA code to copy 1 field to another? BCM (Business Contact Manager) 0
N Outlook rules don't create a copy for bcc'ed emails Using Outlook 3
R Copy Outlook Public Folders to a File Server Shared Folder Using Outlook 0
K Outlook Rules: Move a Copy Using Outlook 4
E Copy e-mail body from outlook and insert into excel Outlook VBA and Custom Forms 3
K ind specific Subject line from outlook and copy the content of the email body to exce Outlook VBA and Custom Forms 0
J Copy or Export Outlook Mail to Excel Outlook VBA and Custom Forms 6
Carrie Dickey Outlook 2016 created two calendars titled Calendar1 - appear to be a copy Using Outlook 2
P How to copy and append data from Outlook 2016 message into Excel 2016 workbook Using Outlook 0
Diane Poremsky Use a macro to copy data in Outlook email to Excel workbook New Slipstick.com Articles 0
A Outlook: copy & paste Outlook VBA and Custom Forms 9
Diane Poremsky Use a macro to copy data in Outlook email to Excel workbook New Slipstick.com Articles 0
joflo copy contents from outlook to excell - please help. Using Outlook 4
G outlook 13 copy & paste without losing formatting Using Outlook 1
A Macro to Copy Data from Outlook to Excel Spreadsheet Using Outlook 2
B Outlook being closed causing problems during copy to Excel Outlook VBA and Custom Forms 6
Mary B Outlook 2013: Rule for copying new email to folder & marking that copy as read Using Outlook 1
R Copy/paste mailing address Outlook 2013 Using Outlook 6
Vijay Kumar Copy tables from outlook to excel Using Outlook 12
L Outlook 2007 Copy Email Address in To Field Using Outlook 11
Aussie Looking for Outlook macro to Copy Recipient Names into Email Body Outlook VBA and Custom Forms 3
P Copy email address from outlook 2013/2010 Using Outlook 1
R How to copy outlook 2010 shared calendar appointment or meeting to personal calendar by vba? Outlook VBA and Custom Forms 1
J Cannot copy outlook form to mailbox of exchange 2k13 user Exchange Server Administration 1
L Outlook 2007 Copy Text Field Using Outlook 8
J Copy emails from a dead Outlook 2010 account Using Outlook 1
Z Copy Outlook 2007 "AutoComplete Contacts” to Outlook 2010 Using Outlook 7
N Restoring Outlook Calendar after iCloud copy Using Outlook 1
W Copy individual file folders in Outlook 2010 PST to a My Documents folder Using Outlook 4
C outlook 2003 always not remove temp copy of opened attachments in temporary fo Using Outlook 4
D outlook to save copy of hotmail? Using Outlook 3
P I have Outlook 2007 on a two year old computer running Vista. How do I copy my Outlook Contacts list and move them over to Outlook 2010 on a brand new Using Outlook 1
F Need to copy an email folder to another computer. How can i do this? Outlook 2010 Using Outlook 2
S I'm not able to copy and paste on outlook. Using Outlook 1
M Outlook 2007 Copy-Paste problems Using Outlook 6
F I cannot highlight text in Microsoft Outlook 2010 e-mails, and copy/paste to the body of another e-m Using Outlook 3
R Upgrading to licensed copy from 2010 beta - Outlook won't work Using Outlook 1
H how do i copy outlook mails from my office system to my laptop Using Outlook 2
B Export from Outlook Express and Windows Live Mail fails to copy to Outlook 2010 Using Outlook 1
D Outlook will not import backup copy of contacts. I have tried file-import-etc. but nothing happens. Using Outlook 3
D How can I export a .pst file without a working copy of Outlook? Using Outlook 3
J How to copy and paste in Outlook 2010 ? Using Outlook 3
B Would like to copy a logo in my signature of my email in outlook Using Outlook 1
R Outlook Mac 2011 copy to self Using Outlook 1
L Outlook 2007. A copy of all incoming emails go to Junk folder. __ Using Outlook 2
S Copy/Paste from Office Word 2003 to Outlook 2003 Using Outlook 3
W Copy Outlook 2010 data files Using Outlook 3
J Sending a copy of a single outlook folder to another person Using Outlook 2
Similar threads


















































Top