MoveTop Method
The document is archived and information here might be outdated

MoveTop Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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.


Use the MoveLeft property to scroll column field members.


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


© 2016 Microsoft