WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Recursively process message attachments

 
   Home -> Office -> Programming VBA RSS
Next:  Excel 2007: Lines not displaying on Scatter Plots  
Author Message
JT

External


Since: Mar 07, 2006
Posts: 84



(Msg. 1) Posted: Thu Apr 23, 2009 4:31 pm
Post subject: Recursively process message attachments
Archived from groups: microsoft>public>outlook>program_vba (more info?)

I would like to write some VBA code to process mail messages with attachments
so that I can save the attachment in the file system.

So far, I have been able to do this, so long as the mail message only has a
file as an attachment (text, xls, doc, etc.).

I run into difficulties when I receive messages which contain other mail
messages as attachments, and the attached mail message itself has a file
attachments.

It seemed reasonable that I could write a subroutine that could be called
recursively to process a message's attachment(s), but that does not seem to
be possible.

Does anyone know how to process a mail item with an attached mail item that
has a file (text, doc, xls, etc.) attached to it?
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2999



(Msg. 2) Posted: Fri Apr 24, 2009 9:08 am
Post subject: Re: Recursively process message attachments [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It has to be saved to the file system as a MSG file, then opened using
Application.CreateItemFromTemplate(). Then you can process that attachment.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"JT" <JT DeleteThis @discussions.microsoft.com> wrote in message
news:DDBEB32C-8A98-4004-AC70-26D15A1A7E1D@microsoft.com...
>I would like to write some VBA code to process mail messages with
>attachments
> so that I can save the attachment in the file system.
>
> So far, I have been able to do this, so long as the mail message only has
> a
> file as an attachment (text, xls, doc, etc.).
>
> I run into difficulties when I receive messages which contain other mail
> messages as attachments, and the attached mail message itself has a file
> attachments.
>
> It seemed reasonable that I could write a subroutine that could be called
> recursively to process a message's attachment(s), but that does not seem
> to
> be possible.
>
> Does anyone know how to process a mail item with an attached mail item
> that
> has a file (text, doc, xls, etc.) attached to it?
>
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support