Share via


ActiveDocument 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 the active document as an DispFPHTMLDocument object.

expression.ActiveDocument

expression   Required. An expression that returns one of the objects in the Applies To list.

Remarks

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.

Example

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