Returns an IHTMLElement object that represents the page content of the current document.
expression.pageContentElement
expression Required. An expression that returns a DispFPHTMLDocument object.
The following example creates a reference to the IHTMLElement object and displays its corresponding HTML tag name.
Sub PageContent()
'Returns the tag name of the page content element
Dim objApp As FrontPage.Application
Dim objDoc As DispFPHTMLDocument
Dim objContent As IHTMLElement
Set objApp = FrontPage.Application
Set objDoc = objApp.ActiveDocument
Set objContent = objDoc.pageContentElement
'Display message to user.
MsgBox "The tag name of the current page element is: " _
& objContent.tagName & "."
End Sub