Caption Property [Window]

Caption returns the caption of the window. Returns a string. This is the default Window object property.

Syntax

object.Caption

Example 1

This example demonstrates how to return the title of a window.

Debug .Print Window.Caption

Example 2

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

Used by: Window object