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

TickLabels.Offset Property (PowerPoint)

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

Returns or sets the distance between the levels of labels, and the distance between the first level and the axis line. Read/write Long.


expression. Offset

expression A variable that represents a TickLabels object.


The default distance is 100 percent, which represents the default spacing between the axis labels and the axis line. The value can be an integer percentage from 0 through 1000, relative to the axis label's font size.


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

The following example sets the label spacing of the category axis for the first chart in the active document to twice the current setting, if the offset is less than 500.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.Axes(xlCategory).TickLabels

            If .Offset < 500 then

                .Offset = .Offset * 2

            End If

        End With

    End If

End With

See also


TickLabels Object

© 2018 Microsoft