ScrollBar object (Outlook Forms Script)
Returns or sets the value of another control based on the position of the scroll box.
A ScrollBar is a stand-alone control you can place on a form. It is visually like the scroll bar you see in certain objects such as a ListBox or the drop-down portion of a ComboBox. However, unlike the scroll bars in these controls, the stand-alone ScrollBar is not an integral part of any other control.
To use the ScrollBar to set or read the value of another control, you must write code that uses the ScrollBar control's Value property. For example, to use the ScrollBar to update the value of a TextBox, you can write code that reads the Value property of the ScrollBar and then sets the Value property of the TextBox.
The default property for a ScrollBar is the Value property.
To create a horizontal or vertical ScrollBar, drag the sizing handles of the ScrollBar horizontally or vertically on the form.
|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 ScrollBar. 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.|
|LargeChange||Returns or sets a Long that specifies the amount of movement that occurs when the user clicks between the scroll box and scroll arrow. Read/write.|
|Max||Returns or sets a Long that specifies the maximum and minimum acceptable values for the Value property of a ScrollBar. Read/write.|
|Min||Returns or sets a Long that specifies the maximum and minimum acceptable values for the Value property of a ScrollBar. 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.|
|ProportionalThumb||Returns or sets a Boolean that specifies whether the size of the scroll box is proportional to the scrolling region or fixed. 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 ScrollBar. Read/write.|
|Value||Returns or sets a Variant that specifies the state of a ScrollBar. 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.