A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to AutoSave Attachments that meet a criteria to a folder on a local drive



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 29th 10, 04:17 AM
Mr. Walnuts Mr. Walnuts is offline
Junior Member
 
First recorded activity at Outlookbanter: Apr 2010
Posts: 2
Default How to AutoSave Attachments that meet a criteria to a folder on a local drive

I should start by saying that I have never used VBA for Outlook. I can use basic Outlook Functions; mail rules, data files, etc.

I do however have experience using Macros & VBA for Excel 2003/2007/2010.

I'm making an excel application to automate as much of a friend of mine's administrative tasks as possible for his work. Does anyone know whether or not you can make a macro on Outlook or Excel to retrieve email attachments from Outlook, file the attachments in a specified location on his computer based on Outlook rules, and add the attachment name to a database on Excel so that the attachments can be referenced and opened from an excel worksheet that lists the attachments?

I realize this is an Outlook forum, so really if someone could give me insight on how to get the Outlook part of it (Autosaving Email Attachments based on specified criteria to a folder on the computer); I can setup the Excel side myself.

Also, does anyone know of any decent online tutorials about Using Outlook and Excel together to automate tasks?
Ads
  #2  
Old April 29th 10, 11:35 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default How to AutoSave Attachments that meet a criteria to a folder on a local drive



If you want to run the code by a rule, use a Run-a-Script-Rule, for which
the declaration looks like this:

Public Sub WhatEver(Mail as Outlook.MailItem)
' your code
End Sub

In that procedure you can check the Mail.Attachments collection for whether
there's at least one attachment. Also, see the Attachment.SaveAsFile
function.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Thu, 29 Apr 2010 03:17:53 +0100 schrieb Mr. Walnuts:

I should start by saying that I have never used VBA for Outlook. I can
use basic Outlook Functions; mail rules, data files, etc.

I -do- however have experience using Macros & VBA for Excel
2003/2007/2010.

I'm making an excel application to automate as much of a friend of
mine's administrative tasks as possible for his work. Does anyone know
whether or not you can make a macro on Outlook or Excel to retrieve
email attachments from Outlook, file the attachments in a specified
location on his computer based on Outlook rules, and add the
attachment name to a database on Excel so that the attachments can be
referenced and opened from an excel worksheet that lists the
attachments?

I realize this is an Outlook forum, so really if someone could give me
insight on how to get the Outlook part of it (Autosaving Email
Attachments based on specified criteria to a folder on the computer); I
can setup the Excel side myself.

Also, does anyone know of any decent online tutorials about Using
Outlook and Excel together to automate tasks?

  #3  
Old May 3rd 10, 03:58 AM
Mr. Walnuts Mr. Walnuts is offline
Junior Member
 
First recorded activity at Outlookbanter: Apr 2010
Posts: 2
Default

Outstanding... Thank you.

Thats exactly what I needed. I just was not familiar with the Outlook VBA Object Model. Anyone have a link to an Outlook VBA Object quick reference?
  #4  
Old May 3rd 10, 09:10 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default How to AutoSave Attachments that meet a criteria to a folder on a local drive



See the object browser (f2), and switch from All Libraries to Outlook.

--
Best regards
Michael Bauer - MVP Outlook
Category Manager - Manage and share your categories:
SAM - The Sending Account Manager:
http://www.vboffice.net/product.html?lang=en


Am Mon, 3 May 2010 02:58:36 +0100 schrieb Mr. Walnuts:

Outstanding... Thank you.

Thats exactly what I needed. I just was not familiar with the Outlook
VBA Object Model. Anyone have a link to an Outlook VBA Object quick
reference?

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create folder on local drive svt4cobra6 Outlook - General Queries 8 June 29th 09 10:00 PM
Set up archive folder on local drive pdberger Outlook - Installation 2 March 6th 09 08:49 PM
Dealing with pst files on local hard drive [email protected] Outlook - General Queries 5 February 20th 07 02:30 PM
Create a search folder to look at all emails in one folder and selected criteria in other folders [email protected] Outlook - General Queries 1 April 10th 06 10:40 AM
Save emails by sender to local drive folder Albert Outlook - General Queries 1 January 12th 06 04:42 PM


All times are GMT +1. The time now is 04:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.