Muokkaa

Jaa


Window.ScrollIntoView method (Word)

Scrolls through the document window so the specified range or shape is displayed in the document window.

Syntax

expression.ScrollIntoView (Obj, Start)

expression Required. A variable that represents a Window object.

Parameters

Name Required/Optional Data type Description
Obj Required Object A Range or Shape object.
Start Optional Boolean True if the upper-left corner of the range or shape appears at the upper-left corner of the document window. False if the lower-right corner of the range or shape appears at the lower-right corner of the document window. The default value is True.

Remarks

If the range or shape is larger than the document window, the Start argument specifies which portion of the range or shape displays or gets initial focus. This method cannot be used with outline view.

Example

This example scrolls through the active document so that the current selection is visible in the document window.

ActiveWindow.ScrollIntoView Selection.Range, True

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.