ActiveDocument Property

ActiveDocument returns the active document object. Returns an object. This is a read-only property.

Syntax

object.ActiveDocument

Example 1

This script displays all the properties in the Application object.

Example 2

This example demonstrates how to return the active document.

Debug .Print SurferApp.ActiveDocument

Used by: Application object