Bewerken

Delen via


Application.Caption property (Excel)

Returns or sets a String value that represents the name that appears in the title bar of the main Microsoft Excel window.

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 a custom name.

Application.Caption = "Blue Sky Airlines Reservation System"

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.