Please use the Object Browser (F2), it tells you all properties, functions
of an object. Switch from All Libraries to Outlook and select the object
name in the left pane.
You can check an Attachment's FileName property. If the last 4 characters
are ".msg" then it's an Outlook item (maybe a MailItem, or any other type).
You can save that with SaveAsFile and load it with CreateItemFromTemplate.
For getting directly that item without saving first as a file you'd need to
use another language or Redemption (
www.dimastr.com).
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
--
www.VBOffice.net --
Am Fri, 17 Nov 2006 00:16:01 -0800 schrieb Avadivelan TCS:
Dear Michael Bauer,
Thanks a lot. Its working. How can i find the no of Attachments in the
mail?
And one more doubt, If attached mail having multiple attachments mean how
can i read or trace throgh code..?
Thanks in advance for your reply. Have anice day.
"Michael Bauer [MVP - Outlook]" wrote:
E.g. the first attachment:
olMail.Attachments(1).FileName
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --
Am Thu, 16 Nov 2006 18:27:01 -0800 schrieb Avadivelan TCS:
Is it possible to read(show) attchments name..?
like this
olMail.Subject
olMail.Body
olMail.SenderName
Thanks in advance for your reply.