HTMLDocument Property
07/11/2006
2 minutes to read
In this article
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
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 MAPIFolder object to a Web page.
Example
The following Microsoft Visual Basic/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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)