Propiedad Explorer.HTMLDocument (Outlook)

Devuelve un objeto HTMLDocument que especifica el modelo de objetos HTML asociado al documento HTML en la vista actual (si existe). Solo lectura.

Sintaxis

expresión. HTMLDocument

Expresión Variable que representa un objeto "Explorer".

Comentarios

Para usar esta propiedad, una carpeta debe usar una página principal de carpeta o puede establecer la propiedad WebViewURL del objeto Folder en una página web.

Ejemplo:

En el ejemplo siguiente de Microsoft Visual Basic para Aplicaciones (VBA), se obtiene acceso al control de vistas de Microsoft Outlook.

 Sub GetHTML() 
 
'Returns the Outlook View Control 
 
 
 
 Dim objVC As OLXLib.ViewCtl 
 
 Dim objExp As Outlook.Explorer 
 
 Dim HTMLDoc As MSHTML.HTMLDocument 
 
 
 
 'Reference the current folder 
 
 Set objExp = Application.ActiveExplorer 
 
 
 
 'Reference the HTML file that is the home page 
 
 Set HTMLDoc = objExp.HTMLDocument 
 
 
 
 'Reference an Outlook View Control that is on the HTML page 
 
 Set objVC = HTMLDoc.all.tags("object").Item(0).Object 
 
 
 
 'Have the control display an address book window 
 
 objVC.AddressBook 
 
 
 
End Sub

Consulte también

Objeto Explorer

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.