Caption Property

Specifies the caption text of the Text and Datalink objects and/or the caption of the Window or Application object.

Syntax

object.Caption [= String]

Properties

The Caption property syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

String

The string displayed as the caption of the object.

Remarks

To change the caption of a Picture or Window object, the user would do the following:

Application.ActiveWindow.Caption = "NewCaption"

 

Applies To