Pane.AutoScroll Method
Word Developer Reference |
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.
Visual Basic for Applications |
---|
|
This example scrolls forward through the active window pane at full speed.
Visual Basic for Applications |
---|
|
See Also