When you click on the item to select it the Explorer.SelectionChange event fires, that's what you need to handle. In that handler you would check to see that the returned Selection collection only has 1 item and then you would get the and check its Class property to make sure it was a mail item. If it is then you can change the MailItem.BodyFormat property to olFormatPlain.
Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm
"rr" <nospam@rochester.rr.com> wrote in message news:484eefd1$0$5701$4c368faf@roadrunner.com...
> Can you help me with a macro? We get emails in (Outlook 2007) in html > format, and we need to change them to plain text. In other words, I > would > like to select an email in the inbox and click on a toolbar item to > activate > a macro to convert that file to plain text. > > Right now I have to open the email, change it to plain text, and then > close > it. > > Thanks for your help. > >
10 Jun 2008macro needed.rr
12 Jun 2008\ Re: macro needed.Ken Slovak - [MVP - O...
All times are in (US) Eastern Daylight Time (GMT -4:00)