Expand Minimize
This topic has not yet been rated - Rate this topic

PivotField.DragToData Property (Excel)

Published: July 16, 2012

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

expression .DragToData

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 from being dragged to the data position in the first PivotTable report on the first worksheet.

Worksheets(1).PivotTables("Pivot1") _ 
 .PivotFields("Year").DragToData = False
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.