Window.ScrollIntoView (Excel)

Scrolls the document window so that the contents of a specified rectangular area are displayed in either the upper-left or lower-right corner of the document window or pane (depending on the value of the Start argument).

The Start argument is useful for orienting the screen display when the rectangle is larger than the document window or pane.

ScrollIntoView (Left, Top, Width, Height, Start)


ActiveWindow.ScrollIntoView  Left:=50, Top:=20, Width:=100, Height:=200

Arguments

The following arguments are required:

Left (Long) - The horizontal position of the rectangle (in points) from the left edge of the document window or pane.

Top (Long) - The vertical position of the rectangle (in points) from the top of the document window or pane.

Width (Long) - The width of the rectangle, in points.

Height (Long) - The height of the rectangle, in points.

Optional arguments

The following argument is optional

Start (Boolean) - True to have the upper-left corner of the rectangle appear in the upper-left corner of the document window or pane. False to have the lower-right corner of the rectangle appear in the lower-right corner of the document window or pane. The default value is True.