Table of contents
TOC
Collapse the table of content
Expand the table of content

Scroll Method

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Moves the scroll bar on an object. Syntaxobject. Scroll( [ ActionX [, ActionY ]] ) The Scroll method syntax has these parts:

PartDescription
objectRequired. A valid object name.
ActionXOptional. Identifies the action to occur in the horizontal direction.
ActionYOptional. Identifies the action to occur in the vertical direction.

Settings The settings for ActionX and ActionY are:

ConstantValueDescription
fmScrollActionNoChange0Do not scroll in the specified direction.
fmScrollActionLineUp1Move up on a vertical scroll bar or left on a horizontal scroll bar. Movement is equivalent to pressing the up or left arrow key on the keyboard to move the scroll bar.
fmScrollActionLineDown2Move down on a vertical scroll bar or right on a horizontal scroll bar. Movement is equivalent to pressing the right or down arrow key on the keyboard to move the scroll bar.
fmScrollActionPageUp3Move one pageup on a vertical scroll bar or one page left on a horizontal scroll bar. Movement is equivalent to pressing PAGE UP on the keyboard to move the scroll bar.
fmScrollActionPageDown4Move one pagedown on a vertical scroll bar or one page right on a horizontal scroll bar. Movement is equivalent to pressing PAGE DOWN on the keyboard to move the scroll bar.
fmScrollActionBegin5Move to the top of a vertical scroll bar or to the left end of a horizontal scroll bar.
fmScrollActionEnd6Move to the bottom of a vertical scroll bar or to the right end of a horizontal scroll bar.

Remarks The Scroll method applies scroll bars that appear on a form, Frame, or Page that is larger than its display area. This method does not apply to the stand-alone ScrollBar or to scroll bars that appear on a TextBox.

© 2018 Microsoft