SpinButton object (Outlook Forms Script)

Increments and decrements a value.

Remarks

Clicking a SpinButton changes only the value of the SpinButton. You can write code that uses the SpinButton to update the displayed value of another control. For example, you can use a SpinButton to change the month, the day, or the year shown on a date. You can also use a SpinButton to scroll through a range of values or a list of items, or to change the value displayed in a text box.

To display a value updated by a SpinButton, you must assign the value of the SpinButton to the displayed portion of a control, such as the Caption property of a Label or the Text property of a TextBox. To create a horizontal or vertical SpinButton, drag the sizing handles of the SpinButton horizontally or vertically on the form.

The default property for a SpinButton is the Value property.

Properties

Name Description
BackColor Returns or sets a Long that specifies the background color of the object. Read/write.
Delay Returns or sets a Long that specifies the delay in milliseconds, between events on a SpinButton. Read/write.
Enabled Returns or sets a Boolean that specifies whether a control can receive the focus and respond to user-generated events. Read/write.
ForeColor Returns or sets a Long that specifies the foreground color of an object. Read/write.
Max Returns or sets a Long that specifies the maximum and minimum acceptable values for the Value property of a SpinButton. Read/write.
Min Returns or sets a Long that specifies the maximum and minimum acceptable values for the Value property of a SpinButton. Read/write.
MouseIcon Returns a String that represents the full path name of a custom icon that is to be assigned to the control. Read-only.
MousePointer Returns or sets an Integer that specifies the type of pointer displayed when the user positions the mouse over a particular object. Read/write.
Orientation Returns or sets an Integer that specifies whether the control is oriented vertically or horizontally. Read/write.
SmallChange Returns or sets an Integer that specifies the amount of movement that occurs when the user clicks either scroll arrow in a SpinButton. Read/write.
Value Returns or sets a Variant that specifies the state of a SpinButton. Read/write.

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.