Syntax

expression.OffsetX

expression A variable that represents a ShadowFormat object.

Remarks

If you want to nudge a shadow horizontally or vertically from its current position without having to specify an absolute position, use the method or the method.

Example

This example sets the horizontal and vertical offsets for the shadow of 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.

Visual Basic for Applications
Set myDocument = Worksheets(1) With myDocument.Shapes(3).Shadow .Visible = True .OffsetX = 5 .OffsetY = -3 End With
Offset offset x OffsetX offsetx property

See also: