Inspector.EditorType (Outlook)
Returns an OlEditorType constant indicating the type of editor. Possible return values are olEditorHTML - HTML editor, olEditorRTF - Real Text Format (RTF) editor, olEditorText - Text editor, olEditorWord - Microsoft Office Word editor.
Since Microsoft Office Outlook 2007, the EditorType property always returns olEditorWord.
Function Item_Open()
'Set the HTMLBody of the item.
Item.HTMLBody = "My HTML page.
My body."
'Item displays HTML message.
Item.Display
'MsgBox shows EditorType is 2 which represents the HTML editor type
MsgBox "HTMLBody EditorType is " & Item.GetInspector.EditorType
'Access the Body and show
'the text of the Body.
MsgBox "This is the Body: " & Item.Body
'After accessing, EditorType
'is still 2.
MsgBox "After accessing, the EditorType is " & Item.GetInspector.EditorType
'Set the item's Body property.
Item.Body = "Back to default body."
'After setting the Body, EditorType is
'still the same.
MsgBox "After setting, the EditorType is " & Item.GetInspector.EditorType
End Function