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.
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 2D 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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.