identifying a message

N

nycboy

Try this:

Select Case (olMailItem.GetInspector.EditorType)
Case olEditorHTML:

Case olEditorRTF:

Case Else

End Select

David

---- original message ----
Date: 2/7/2005 1:33:00 AM
Author: Lynn
hi, how can i check if an email is in rtf or html format using vba ?
thanks



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
L

Lynn

how do i know if there is a MailItem.GetInspector method in outlook ?
assuming i did not know GetInspector method from you.
 
S

Sue Mosher [MVP-Outlook]

You do your homework in the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. Switch from <All Libraries> to
Outlook to browse all Outlook objects and their properties, methods, and
events. Select any object or member, then press F1 to see its Help topic. If
you searched for "RTF" or "HTML," you'd probably have found it.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
L

Lynn

this is the only way to find out is it?

Sue Mosher said:
You do your homework in the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. Switch from <All Libraries> to
Outlook to browse all Outlook objects and their properties, methods, and
events. Select any object or member, then press F1 to see its Help topic. If
you searched for "RTF" or "HTML," you'd probably have found it.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Either that or ask, as you did originally.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top