Table of contents
TOC
Collapse the table of content
Expand the table of content

Axis Object (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Represents a single axis in a chart.

Remarks

The Axis object is a member of the Axes collection.

Use Axes ( Type, AxisGroup ) where Type is the axis type and AxisGroup is the axis group to return a single Axis object. Type can be one of the following XlAxisType constants: xlCategory, xlSeries, or xlValue. AxisGroup can be one of the following XlAxisGroup constants: xlPrimary or xlSecondary. For more information, see the Axes method.

Example

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

The following example sets the category axis title text for the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.Axes(xlCategory)

            .HasTitle = True

            .AxisTitle.Caption = "1994"

        End With

    End If

End With

Methods

Name
Delete
Select

Properties

Name
Application
AxisBetweenCategories
AxisGroup
AxisTitle
BaseUnit
BaseUnitIsAuto
Border
CategoryNames
CategoryType
Creator
Crosses
CrossesAt
DisplayUnit
DisplayUnitCustom
DisplayUnitLabel
Format
HasDisplayUnitLabel
HasMajorGridlines
HasMinorGridlines
HasTitle
Height
Left
LogBase
MajorGridlines
MajorTickMark
MajorUnit
MajorUnitIsAuto
MajorUnitScale
MaximumScale
MaximumScaleIsAuto
MinimumScale
MinimumScaleIsAuto
MinorGridlines
MinorTickMark
MinorUnit
MinorUnitIsAuto
MinorUnitScale
Parent
ReversePlotOrder
ScaleType
TickLabelPosition
TickLabels
TickLabelSpacing
TickLabelSpacingIsAuto
TickMarkSpacing
Top
Type
Width

See also

Other resources

PowerPoint Object Model Reference

© 2017 Microsoft