PC Review


Reply
Thread Tools Rate Thread

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

 
 
Mr. Walnuts
Guest
Posts: n/a
 
      29th Apr 2010

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

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

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

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

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


--
Mr. Walnuts
 
Reply With Quote
 
 
 
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      29th Apr 2010


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?

 
Reply With Quote
 
Mr. Walnuts
Guest
Posts: n/a
 
      3rd May 2010

Outstanding... Thank you.

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


--
Mr. Walnuts
 
Reply With Quote
 
Michael Bauer [MVP - Outlook]
Guest
Posts: n/a
 
      3rd May 2010


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?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
change local drive / folder to network folder Ludo Microsoft Excel Programming 3 11th Sep 2009 01:48 PM
Need to meet criteria Neall Microsoft Excel Programming 0 30th May 2009 01:12 PM
How do I autosave Word attachments to a specific folder on my PC? Jim Clay Microsoft Outlook Discussion 2 13th Jan 2009 09:26 PM
EXCEL - Meet 2 criteria, then find next case of third criteria Elaine Microsoft Excel Worksheet Functions 3 1st Dec 2008 10:43 PM
Re: Autosave of Attachments Diane Poremsky [MVP] Microsoft Outlook Discussion 0 10th May 2004 04:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:51 AM.