ShadowFormat.OffsetY property (PowerPoint)
Returns or sets the vertical offset of the shadow from the specified shape, in points. Read/write.
expression A variable that represents an ShadowFormat object.
A positive value offsets the shadow to the right of the shape; a negative value offsets it to the left.
This example sets the horizontal and vertical offsets of the shadow for shape three on myDocument. The shadow is offset 5 points to the right of the shape and 3 points above it. If the shape doesn't already have a shadow, this example adds one to it.
Set myDocument = ActivePresentation.Slides(1) With myDocument.Shapes(3).Shadow .Visible = True .OffsetX = 5 .OffsetY = -3 End With
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.