Last updated: July 3, 2010 1:15 PM
Search Contextures Sites ![]()
Excel Pivot Table Tutorial -- Protection
Download the pivot table tutorial sample file
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 pivot table tutorial file![]()
Dragging Enabled
![]()
Contextures Inc., Copyright ©2012
All rights reserved.