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

MoveDetailLeft 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 the detail area to the left starting at the specified column member.

expression.MoveDetailLeft(DetailLeft, DetailLeftOffset, Update)

expression   Required. An expression that returns a PivotColumnMember object.

DetailLeft  Required Long. An index number indicating for the cell to use as the basis for scrolling. For example, use a value of 2 to start the scrolling at the third column in the detail area.

DetailLeftOffset  Required Long. The number of pixels to scroll.

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


This example scrolls the detail area to the left by 10 pixels starting at the second column.

Sub ScrollDetailColumns()

    Dim ptData
    Dim pmColumnMember

    Set ptData = PivotTable1.ActiveData

    Set pmColumnMember = ptData.ColumnAxis.Member

    ' Scroll the first column in the detail area
    ' the left by 10 pixels.
    pmColumnMember.MoveDetailLeft 1, 10

End Sub


© 2016 Microsoft