Window.VerticalPercentScrolled property (Word)

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.

MsgBox ActiveDocument.ActiveWindow.VerticalPercentScrolled & "%"

This example scrolls the active window vertically by 10 percent.

Set aWindow = ActiveDocument.ActiveWindow 
aWindow.VerticalPercentScrolled = _ 
 aWindow.VerticalPercentScrolled + 10

See also

Window Object

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.