ScrollLeft, ScrollTop Properties

Applies To

Frame control, Page object, UserForm object.

Description

Specify the distance, in points, of the left or top edge of the visible form from the left or top edge of the logical form, page, or control.

Syntax

object.ScrollLeft [= Single]

object.ScrollTop [= Single]

The ScrollLeft and ScrollTop property syntaxes have these parts:

Part

Description

object

Required. A valid object.

Single

Optional. The distance from the edge of the form.


Remarks

The minimum value is zero; the maximum value is the difference between the value of the ScrollWidth property and the value of the Width property for the form or page.

See Also

Height, Width properties, ScrollBars property, ScrollHeight, ScrollWidth properties.

Example

See the ScrollHeight, ScrollWidth properties example.