Document Property

 

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

 

Syntax

object.Document

 

Example

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

 

Debug.Print Window.Document

 

Used by: Window object