MoveTop Method

Microsoft Office Web Components Visual Basic

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