OldLeft, OldTop properties

Returns the distance, in points, between the previous position of a control and the left or top edge of the form that contains it.

Syntax

object.OldLeft
object.OldTop

The OldLeft and OldTop property syntaxes have these parts:

Part Description
object Required. A valid object.

Remarks

OldLeft and OldTop are read-only.

The OldLeft and OldTop properties are automatically updated when you move or size a control. If you move a control, the Left and Top properties store the new distance from the control to the left edge of its container, and OldLeft and OldTop store the previous value of Left.

OldLeft and OldTop are valid only in the Layout event.

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.