Partager via


DataLabel.Separator Property (PowerPoint)

Returns or sets the separator used for the data labels on a chart. Read/write Variant.

Version Information

Version Added: PowerPoint 2007

Syntax

expression .Separator

expression A variable that represents a DataLabel object.

Remarks

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.

Example

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

Concepts

DataLabel Object Members

DataLabel Object