Pane.AutoScroll method (Word)
Scrolls automatically through the specified pane.
Syntax
expression. AutoScroll
( _Velocity_
)
expression Required. A variable that represents a 'Pane' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Velocity | Required | Long | The speed for scrolling. Can be a number from -100 through 100. Use -100 for full-speed backward scrolling, and use 100 for full-speed forward scrolling. |
Remarks
This method continues to run until you stop it manually by pressing a key or clicking the mouse.
Example
This example scrolls backward through the active window pane slowly.
ActiveDocument.ActiveWindow.ActivePane.AutoScroll _
Velocity:=-20
This example scrolls forward through the active window pane at full speed.
ActiveDocument.ActiveWindow.ActivePane.AutoScroll _
Velocity:=100
See also
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for