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

  • Run a Script Rule to Save Attachments.txt
    1 KB · Views: 211

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.
Similar threads
Thread starter Title Forum Replies Date
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 3
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
N error when copying outlook data "can not copy: the path too deep" Using Outlook 6
P Outlook looking for Copy of Outlook.pst Outlook VBA and Custom Forms 1
S Copy Tasks/Reminders from Shared Mailbox to Personal Tasks/Reminders Outlook VBA and Custom Forms 0
A Cannot copy this folder because it may contain private items Using Outlook 0
C Copy Move item won't work Outlook VBA and Custom Forms 2
B VBA to convert email to task, insert text of email in task notes, and attach copy of original email Outlook VBA and Custom Forms 4
Commodore Move turns into "copy" Using Outlook 3
F Copy and replace not update contact in another pst Using Outlook 0
Commodore Folders always closed in move/copy items dialog box Using Outlook 3
S Custom Form, copy user field data to message body Outlook VBA and Custom Forms 12
oliv- HOW TO COPY /USE FOLDERS ICONS Outlook VBA and Custom Forms 2
B Copy/Move Exchange inbox to Pop inbox Using Outlook 4
R Sending email copy (*.msg file) of sent email if subject line contains specific string. Outlook VBA and Custom Forms 1
O Copy mails from many subfolders to 1 foldr Using Outlook 2
K How to find specific header and copy the mail body Using Outlook 0
G Copy Contact field to Appointment Custom Form Field Outlook VBA and Custom Forms 2

Similar threads

Top