DocumentWindow.ScrollIntoView method (PowerPoint)
Scrolls the document window so that items within a specified rectangular area are displayed in the document window or pane.
Syntax
expression.ScrollIntoView (Left, Top, Width, Height, Start)
expression A variable that represents a DocumentWindow object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Left | Required | Long | The horizontal distance (in points) from the left edge of the document window to the rectangle. |
Top | Required | Long | The vertical distance (in points) from the upper part of the document window to the rectangle. |
Width | Required | Long | The width of the rectangle (in points). |
Height | Required | Long | The height of the rectangle (in points). |
Start | Optional | MsoTriState | Determines the starting position of the rectangle in relation to the document window. |
Remarks
If the bounding rectangle is larger than the document window, the Start parameter specifies which end of the rectangle displays or gets initial focus. This method cannot be used with outline or slide sorter views.
The Start parameter value can be one of these MsoTriState constants.
Constant | Description |
---|---|
msoFalse | The bottom right of the rectangle is to appear at the bottom right of the document window. |
msoTrue | The default. the upper-left of the rectangle is to appear at the upper-left of the document window. |
Example
This example brings into view a 100x200 point area beginning 50 points from the left edge of the slide, and 20 points from the upper part of the slide. the upper-left corner of the rectangle is positioned at the upper-left corner of the active document window.
ActiveWindow.ScrollIntoView Left:=50, Top:=20, _
Width:=100, Height:=200
See also
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.