Share via


MoveTop Method

Scrolls a row field member up by the specified number of pixels, or until the next row member has been scrolled to the top of the display.

expression.MoveTop(Top, TopOffset, Update)

*expression   * Required. An expression that returns a PivotData object.

Top   Required PivotRowMember object. The row member to scroll.

TopOffset   Required Long. The number of pixels to scroll the member.

Update   Optional Boolean. Determines whether or not the display is updated. The default value is True.

Remarks

Use the MoveLeft property to scroll column field members.

Example

This example scrolls the PivotTable view to the next row member.

Sub ScrolltoNextRowMember()

    Dim ptData

    Set ptConstants = PivotTable1.Constants

    Set ptData = PivotTable1.ActiveData

    ' Scroll to the next row member.
    ptData.MoveTop ptData.Top, 1000

End Sub

Applies to | PivotData Object

See Also | MoveDetailLeft Method | MoveDetailTop Method