Width (ActiveX)

This property returns and sets the width of an object.

Syntax

object.Width [= number]

Parameters

object
Object expression that evaluates to a control.
number
Numeric expression that specifies the dimensions of an object, as described in Settings.

Widths are measured from the center of the control's border so that controls with different border widths align correctly.

Remarks

For a control, the values for this property change as the object is sized by a user or by your code. Maximum limits of the property for all objects are system-dependent.

Use the Height, Width, Left, and Top properties for operations or calculations based on an object's total area, such as sizing or moving the object.