TextBox.ScrollBarAlign property (Access)
You can use the ScrollBarAlign property to specify or determine the alignment of a vertical scroll bar. Read/write Byte.
expression A variable that represents a TextBox object.
The ScrollBarAlign property uses the following settings.
|System||0||A vertical scroll bar is placed on the left if the form or report Orientation property is right to left, and on the right if the form or report Orientation property is left to right.|
|Right||1||Aligns the vertical scroll bar on the right side of the control.|
|Left||2||Aligns the vertical scroll bar on the left side of the control.|
The following example aligns the vertical scroll bar on the left side of the Country combo box in the International Shipping form.
Forms("International Shipping").Controls("Country").ScrollBarAlign = 2
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.