Skip to content

Latest commit

 

History

History
84 lines (39 loc) · 1.59 KB

Outlook.Explorer.HTMLDocument.md

File metadata and controls

84 lines (39 loc) · 1.59 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Explorer.HTMLDocument property (Outlook)
vbaol11.chm2778
vbaol11.chm2778
Outlook.Explorer.HTMLDocument
dd9ff575-37f5-1b64-5ebf-f17998586d28
06/08/2017
medium

Explorer.HTMLDocument property (Outlook)

Returns an HTMLDocument object that specifies the HTML object model associated with the HTML document in the current view (assuming one exists). Read-only.

Syntax

expression. HTMLDocument

expression A variable that represents an 'Explorer' object.

Remarks

In order to use this property, a folder must be using a folder home page, or you can set the WebViewURL property of the Folder object to a webpage.

Example

The following Microsoft Visual Basic for Applications (VBA) example accesses the Microsoft Outlook View Control.

 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

See also

Explorer Object

[!includeSupport and feedback]