selected Mail in Outlook

I

Irfan Ahmed

How can I get the selected Mail in the MS Outlook?
I want to read the body and save the attachments.

Irfan
 
K

Ken Slovak - [MVP - Outlook]

Outlook.Application.ActiveExplorer.Selection.Item(1) will give the only or
first selected item.

Item.Body is the plain text, Item.HTMLBody is the html and Item.Attachments
is the attachments collection. Reading .Body or .HTMLBody in some secured
versions of Outlook (Outlook 2002 SP3 and later or Outlook 2003) will fire
the security prompts.
 
I

Irfan Ahmed

Thanks for this help, much appreciated.
You said something about security popups. Is there any why to supress them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top