PageScroll Method

Applies To

Pane object, Window object.

Description

Scrolls through the specified pane or window page by page.

Syntax

expression.PageScroll(Down, Up)

expression   An expression that returns a Window or Pane object.

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're in page layout view or online layout view. This method doesn't 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.

See Also

AutoScroll method, LargeScroll method, SmallScroll method.

Example

This example scrolls down three pages in the active window.

ActiveWindow.View.Type = wdPageView
ActiveWindow.PageScroll Down:=3
This example scrolls up one page in the active pane.

ActiveWindow.View.Type = wdPageView
ActiveWindow.ActivePane.PageScroll Up:=1
This example scrolls down one page in the active window.

ActiveWindow.View.Type = wdPageView
ActiveWindow.PageScroll