Title Property

The Title property returns an AutoAxisTitle object, AutoScaleTitle object, AutoGraphTitle object, AutoLegendTitle object, AutoPieChartTitle object or AutoMText object. This is a read-only property.

Syntax

object.Title

Example 1

This example shows how to set the title offset value to 0.5.

Dim XAxisTitle As Object

Set XAxisTitle = Axis.title

XAxisTitle.xOffset = 0.5

Example 2

This example shows how to access the graph title and return the text.

Dim GraphTitle As Object

Set GraphTitle =

Debug.Print GraphTitle.text

 

Used by: AutoAxis object, AutoColorScale object, AutoGraph object, AutoLegend object, AutoPieChart object, AutoPlot object