Propiedad Inspector.EditorType (Outlook)

Devuelve una constante OlEditorType que indica el tipo de editor. Solo lectura.

Sintaxis

expresión. EditorType

Expresión Variable que representa un objeto Inspector .

Comentarios

Con respecto a Microsoft Office Outlook 2007, la propiedad EditorType siempre devuelve olEditorWord.

Ejemplo:

En este ejemplo de Microsoft Visual Basic Scripting Edition (VBScript), se utiliza el evento Open para obtener acceso a la propiedad HTMLBody de un elemento. Esto establece la propiedad EditorType del Inspector del elemento en olEditorHTML. Si este código se coloca en el Editor de secuencias de comandos de un formulario en modo de diseño, los cuadros de mensaje durante el tiempo de ejecución reflejarán el cambio en el EditorType como el cuerpo del formulario cambie. El cuadro de mensaje final utiliza la propiedad ScriptText para mostrar todo el código de VBScript en el Editor de secuencias de comandos.

Function Item_Open() 
 'Set the HTMLBody of the item. 
 Item.HTMLBody = "<HTML><H2>My HTML page.</H2><BODY>My body.</BODY></HTML>" 
 '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

Consulte también

Objeto Inspector

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.