Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Read (Show) Attachments (http://www.outlookbanter.com/outlook-vba/33138-read-show-attachments.html)

Avadivelan TCS November 17th 06 03:27 AM

Read (Show) Attachments
 
Is it possible to read(show) attchments name..?
like this
olMail.Subject
olMail.Body
olMail.SenderName

Thanks in advance for your reply.

Michael Bauer [MVP - Outlook] November 17th 06 06:57 AM

Read (Show) Attachments
 


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.


Avadivelan TCS November 17th 06 09:16 AM

Read (Show) Attachments
 
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.



Michael Bauer [MVP - Outlook] November 20th 06 06:54 AM

Read (Show) Attachments
 


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.




All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com