Last updated: February 6, 2010 1:45 AM
Search Contextures Sites ![]()
Excel Pivot Table Tutorial -- Protection
Download the sample file for this pivot table tutorial
Allow PivotTable
The following macro enables the features that were turned off in the RestrictPivotTable macro, shown above.
Note: Instead of .PivotFields, you can use .RowFields, .ColumnFields or .PageFields
Sub AllowPivotTable() 'pivot table tutorial by contextures.com Dim pt As PivotTable Dim pf As PivotField Set pt = ActiveSheet.PivotTables(1) With pt .EnableWizard = True .EnableDrilldown = True .EnableFieldList = True 'Excel 2002+ .EnableFieldDialog = True .PivotCache.EnableRefresh = True For Each pf In pt.PivotFields With pf .DragToPage = True .DragToRow = True .DragToColumn = True .DragToData = True .DragToHide = True End With Next pf End With End SubDownload the sample file for this pivot table tutorial![]()
Dragging Enabled
Pivot Table Tutorial List
Contextures Inc., Copyright © 2009.
All rights reserved.