Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2006

Tip: Looking for answers? Try searching our database.

Read (Show) Attachments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Avadivelan TCS - 17 Nov 2006 02:27 GMT
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] - 17 Nov 2006 05:57 GMT
E.g. the first attachment:

olMail.Attachments(1).FileName

Signature

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
[quoted text clipped - 3 lines]
>
> Thanks in advance for your reply.
Avadivelan TCS - 17 Nov 2006 08:16 GMT
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.

> E.g. the first attachment:
>
[quoted text clipped - 7 lines]
> >
> > Thanks in advance for your reply.
Michael Bauer [MVP - Outlook] - 20 Nov 2006 05:54 GMT
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).

Signature

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,
>
[quoted text clipped - 15 lines]
>>>
>>> Thanks in advance for your reply.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.