Document Property

Document returns the document associated with this window. Returns an object. This is a read-only property.

Syntax

object.Document

Example 1

This example demonstrates how to return the name of the document associated with a window.

Debug.Print Window.Document

Example 2

This script displays all the methods and properties in the Window object.

Used by: Window object