PivotCell.PivotColumnLine (Excel)

Returns the PivotLine object on a column for a specific PivotCell object.

If the PivotCell is on rows, the PivotColumnLine property returns a run-time error. If the PivotCell is on columns, the PivotColumnLine property returns the column's PivotLine object. If the PivotCell is in the data area, the PivotColumnLine property returns the corresponding column's PivotLine object.


Dim pvtlnPivotColumnLine As PivotLine
Set pvtlnPivotColumnLine = ActiveCell.PivotCell.PivotColumnLine