VerticalPercentScrolled Property

Applies To

Pane object, Window object.

Description

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

See Also

HorizontalPercentScrolled property, LargeScroll method, SmallScroll method.

Example

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

MsgBox ActiveWindow.VerticalPercentScrolled & "%"
This example scrolls the active window vertically by 10 percent.

Set aWindow = ActiveWindow
aWindow.VerticalPercentScrolled = aWindow.VerticalPercentScrolled + 10
This example scrolls the active pane of the window for Document1 vertically to the end.

With Windows("Document1")
    .Activate
    .ActivePane.VerticalPercentScrolled = 100
End With