Returns the Microsoft Word Document Object Model of the message being displayed. This object model may be temporary and should not be stored for later use. The WordEditor property is only valid if IsWordMail returns True and the EditorType is olEditorWord. Read-only.
objInspector.WordEditor
objInspector Required. An expression that returns an Inspector object.
Remarks
Microsoft Outlook blocks code that attempts to access the WordEditor property for security reasons. If you run a third-party add-in, custom solution, or other program that uses the WordEditor property in Office Outlook 2003, you may receive the following warning:
A program is trying to access e-mail addresses you have stored in Outlook. Do you want to allow this? If this is unexpected, it may be a virus and you should choose "No".
Example
The following Microsoft Visual Basic Scripting Edition (VBScript) example shows how to add a filled rectangle to the message area of the item.
Sub CommandButton1_Click()
Set myInspector = Item.GetInspector
Set WordDoc = myInspector.WordEditor
Set Fill = WordDoc.Shapes.AddShape(1, 90, 90, 90, 50).Fill 'msoShapeRectangle=1
Fill.ForeColor.RGB = RGB(128, 0, 0)
Fill.BackColor.RGB = RGB(170, 170, 170)
Fill.TwoColorGradient 4, 1 'msoGradientDiagonalDown=4
End Sub