(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?
(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.
"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?
>
>
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