Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 919 Bytes

Excel.PivotField.DragToRow.md

File metadata and controls

42 lines (25 loc) · 919 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotField.DragToRow property (Excel)
vbaxl10.chm240105
vbaxl10.chm240105
Excel.PivotField.DragToRow
f10da457-1190-6b9f-ecc1-b9916c7fb4c4
05/04/2019
medium

PivotField.DragToRow property (Excel)

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

Syntax

expression.DragToRow

expression A variable that represents a PivotField object.

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 row position.

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

[!includeSupport and feedback]