method ScrollBar.Scroll (Action as ScrollEnum, ToPosition as Long)
Scrolls programmatically the control.

TypeDescription
Action as ScrollEnum A ScrollEnum expression that specifies the action to perform.
ToPosition as Long A long expression that indicates the new position, when the Action is is exScrollToPosition
use the Scroll method to simulate actions when some parts are clicked. For instance, Scroll(exScrollLeft) simulates a single click in the control's left/up button, so the Value property is decreased with the SmallChange value. The Scroll method does not fire events like ClickPart or ClickingPart. Use the Value property to specify the control's value.