Edit

Share via


Caption property (Excel Graph)

Returns or sets the title text for the object. Read/write String.

Syntax

expression.Caption

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example adds the title Annual Salary Figures to the chart.

myChart.HasTitle = True 
myChart.ChartTitle.Caption = "Annual Salary Figures" 

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.