Skip to content

Latest commit

 

History

History
35 lines (16 loc) · 703 Bytes

24bccf39-3271-4387-6b7b-21f0ba47500c.md

File metadata and controls

35 lines (16 loc) · 703 Bytes

PivotField.DragToHide Property (Excel)

True if the field can be hidden by being dragged off the PivotTable report. The default value is True . Read/write Boolean .

Syntax

expression . DragToHide

expression A variable that represents a PivotField object.

Example

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

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

See also

Concepts

PivotField Object

Other resources

PivotField Object Members