Export (0) Print
Expand All
Expand Minimize

PivotField.DragToRow Property (Excel)

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

expression .DragToRow

expression A variable that represents a PivotField object.

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

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

Worksheets(1).PivotTables("Pivot1") _ 
 .PivotFields("Year").DragToRow = False
Show:
© 2015 Microsoft