SpinButton.Enabled Property (Outlook Forms Script)

Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.

Syntax

expression.Enabled

expression A variable that represents a SpinButton object.

Remarks

True is the control can receive the focus and respond to user-generated events, and is accessible through code (default). False if the user cannot interact with the control by using the mouse, keystrokes, accelerators, or hotkeys. The control is generally still accessible through code.

Use the Enabled property to enable and disable controls. A disabled control appears dimmed, while an enabled control does not. Also, if a control displays a bitmap, the bitmap is dimmed whenever the control is dimmed.

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.