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

DataLabels.Separator Property (PowerPoint)

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

Sets or returns the separator for the data labels on a chart. Read/write Variant.


expression. Separator

expression A variable that represents a DataLabels object.


If you use a string, you will get a string as the separator. If you use xlDataLabelSeparatorDefault (= 1), you will get the default data label separator, which is either a comma or a newline character, depending on the data label.


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

The following example sets the data label separator for the first series on the first chart in the active document to a semicolon.

With ActiveDocument.InlineShapes(1)
    If .HasChart Then
        .Chart.SeriesCollection(1). _
            DataLabels.Separator = ";"
    End If
End With

See also


DataLabels Object

© 2018 Microsoft