HorizontalPercentScrolled Property

Applies To

Pane object, Window object.

Description

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

See Also

LargeScroll method, SmallScroll method, VerticalPercentScrolled property.

Example

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

MsgBox ActiveWindow.HorizontalPercentScrolled & "%"
This example vertically scrolls the active pane of the window for Document1 all the way to the left.

With Windows("Document1")
    .Activate
    .ActivePane.HorizontalPercentScrolled = 0
End With