need macro please

R

rr

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.
 
G

Guest

Try something like this:

Dim objItem As Object

For Each objItem In ActiveExplorer.Selection
If objItem.Class = olmail Or olPost Then
objItem.BodyFormat = OlBodyFormat.olFormatPlain
End If
Next

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
NEW! -> Try Picture Attachments Wizard 2.0 For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault
 

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