Window.VerticalPercentScrolled Property

Word Developer Reference

Returns or sets the vertical scroll position as a percentage of the document length. Read/write Long.

Syntax

expression.VerticalPercentScrolled

expression   Required. A variable that represents a Window object.

Example

This example displays the percentage that the active window is scrolled vertically.

Visual Basic for Applications
  MsgBox ActiveDocument.ActiveWindow.VerticalPercentScrolled & "%"

This example scrolls the active window vertically by 10 percent.

Visual Basic for Applications
  Set aWindow = ActiveDocument.ActiveWindow
aWindow.VerticalPercentScrolled = _
    aWindow.VerticalPercentScrolled + 10

See Also