Syntax

expression.Caption

expression A variable that represents an Application object.

Remarks

If you don't set a name, or if you set the name to Empty, this property returns "Microsoft Excel".

Example

This example sets the name that appears in the title bar of the main Microsoft Excel window to be a custom name.

Visual Basic for Applications
Application.Caption = "Blue Sky Airlines Reservation System"

See also: