Partager via


Series.PictureUnit2 Property (PowerPoint)

Returns or sets the unit for each picture on the chart if the PictureType property is set to xlStackScale; otherwise, this property is ignored. Read/write Double.

Version Information

Version Added: PowerPoint 2007

Syntax

expression .PictureUnit2

expression A variable that represents a Series object.

Example

Note

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

The following example sets series one for the first chart in the active document to stack pictures and uses each picture to represent five units. You should run the example on a 2-D column chart that has picture data markers.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.SeriesCollection(1)

            .PictureType = xlScale

            .PictureUnit2 = 5

        End With

    End If

End With

See Also

Concepts

Series Object

Series Object Members