HTMLDocument Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns an HTMLDocument object that specifies the HTML object Model associated with the HTML document in the current view (assuming one exists).
expression.HTMLDocument
expression Required. An expression that returns an Explorer object.
Remarks
In order to use this property you must set the homepage property of your MAPIfolder to a Web page, or set the WebViewURL property of the MAPIFolder object to a web page.
Example
The following example accesses the Outlook View Control.
Sub GetHTML()
'Returns the Outlook View control
Dim objExp As Explorer
Set objExp = Application.ActiveExplorer
Dim HTMLDoc As HTMLDocument
Set HTMLDoc = objExp.HTMLDocument
Dim objVC As ViewControl
Set objVC = HTMLDoc.All.Tags("object").Item(0).Object
End Sub