Returns the active document as an DispFPHTMLDocument object.
expression.ActiveDocument
expression Required. An expression that returns one of the objects in the Applies To list.
This object provides access to the Microsoft FrontPage Page object model elements that are compatible with Microsoft Internet Explorer 4.0 and later. This object model provides programmatic capability for the HTML and DHTML programming elements of Internet Explorer.
The following statement returns the ActiveDocument object for the Application object.
myDoc = Application.ActiveDocument
The following statement returns the ActiveDocument object for the PageWindowEx object.
myDoc = Application.WebWindows(0).PageWindows(0).ActiveDocument