PictureFormat.CropLeft Property
Excel Developer Reference |
Returns or sets the number of points that are cropped off the left side of the specified picture or OLE object. Read/write Single.
Syntax
expression.CropLeft
expression An expression that returns a PictureFormat object.
Remarks
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’s 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.
Example
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.
Visual Basic for Applications |
---|
|
Using this example, you can specify the percentage you want to crop 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.
Visual Basic for Applications |
---|
|
See Also