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

PictureFormat.CropLeft Property (PowerPoint)

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

Returns or sets the number of points that are cropped off the left side of the specified picture or OLE object. Read/write.


expression. CropLeft

expression A variable that represents a PictureFormat object.

Return Value



Cropping is calculated relative to the original size of the picture. For example, if you insert a picture that is originally 100 points wide, rescale it so that it is 200 points wide, and then set the CropLeft property to 50, 100 points (not 50) will be cropped off the left side of your picture.


This example crops 20 points off the left side of shape three on myDocument. For the example to work, shape three must be either a picture or an OLE object.

Set myDocument = ActivePresentation.Slides(1)

myDocument.Shapes(3).PictureFormat.CropLeft = 20

This example crops the percentage specified by the user off the left side of the selected shape, regardless of whether the shape has been scaled. For the example to work, the selected shape must be either a picture or an OLE object.

percentToCrop = InputBox("What percentage do you " &; _
    "want to crop off the left of this picture?")

Set shapeToCrop = ActiveWindow.Selection.ShapeRange(1)

With shapeToCrop.Duplicate
    .ScaleWidth 1, True
    .Width = origWidth
End With

cropPoints = origWidth * percentToCrop / 100
shapeToCrop.PictureFormat.CropLeft = cropPoints

See also


PictureFormat Object

© 2018 Microsoft