DragToColumn Property [Excel 2003 VBA Language Reference]

True if the specified field can be dragged to the column position. The default value is True. Read/write Boolean.

Remarks

For OLAP data sources, the value is False for measure fields.

Example

This example prevents the Year field in the first PivotTable report on worksheet one from being dragged to the column position.

Worksheets(1).PivotTables("Pivot1") _
    .PivotFields("Year").DragToColumn = False

Applies to | CubeField Object | PivotField Object

See Also | DragToHide Property | DragToPage Property | DragToRow Property