OldHeight, OldWidth properties

Returns the previous height or width, in points, of the control.

Syntax

object.OldHeight
object.OldWidth

The OldHeight and OldWidth property syntaxes have these parts:

Part Description
object Required. A valid object.

Remarks

OldHeight and OldWidth are read-only.

The OldHeight and OldWidth properties are automatically updated when you move or size a control. If you change the size of a control, the Height and Width properties store the new height, and OldHeight and OldWidth store the previous height.

These properties 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.