Skip to content

Latest commit

 

History

History
75 lines (38 loc) · 1.43 KB

PowerPoint.AxisTitle.md

File metadata and controls

75 lines (38 loc) · 1.43 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
AxisTitle object (PowerPoint)
vbapp10.chm683000
vbapp10.chm683000
PowerPoint.AxisTitle
8eddc95c-2353-43fa-c055-ee76de28009d
06/08/2017
medium

AxisTitle object (PowerPoint)

Represents a chart axis title.

Remarks

Use the AxisTitle property to return an AxisTitle object.

The AxisTitle object does not exist and cannot be used unless the HasTitle property for the axis is True.

Example

Note

Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

The following example sets the caption, sets the font to Bookman 10 point, and formats the word "millions" as italic for the axis title of the value axis for the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.Axes(xlValue)

            .HasTitle = True

            With .AxisTitle

                .Caption = "Revenue (millions)"

                .Font.Name = "bookman"

                .Font.Size = 10

                .Characters(10, 8).Font.Italic = True

            End With

        End With

    End If

End With

See also

PowerPoint Object Model Reference

[!includeSupport and feedback]