Pane.PageScroll method (Word)
Scrolls through the specified window page by page.
Syntax
expression. PageScroll
( _Down_
, _Up_
)
expression Required. A variable that represents a 'Pane' object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Down | Optional | Variant | The number of pages to be scrolled down. If this argument is omitted, this value is assumed to be 1. |
Up | Optional | Variant | The number of pages to be scrolled up. |
Remarks
The PageScroll method is available only if you are in print layout view or Web layout view. This method does not affect the position of the insertion point.
If Down and Up are both specified, the window is scrolled by the difference of the arguments. For example, if Down is 2 and Up is 4, the window is scrolled up two pages.
Example
This example scrolls up one page in the active pane.
ActiveDocument.ActiveWindow.View.Type = wdPrintView
ActiveDocument.ActiveWindow.ActivePane.PageScroll Up:=1
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