ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Restricting Pivot Tables (https://www.excelbanter.com/excel-programming/376422-restricting-pivot-tables.html)

Gerryboy

Restricting Pivot Tables
 
I have a pivot table I wish to distribute to users but wish to restrict what
they can do thereafter.

I have used the usual sub as shown below. My problem is I want to withdraw
the Pivot Wizard but allow them access to the Field List. However if I run
the sub below I find that as long as .EnableWizard = False the Field List
will not appear even if .EnableFieldList = True.

Please help!

Sub RestrictPivotTable()
Dim pf As PivotField
With ActiveSheet.PivotTables(1)
..EnableFieldList = True 'False
..EnableWizard = False 'false
..EnableDrilldown = True
..EnableFieldDialog = True
..PivotCache.EnableRefresh = True
..EnableFieldList = True 'False

For Each pf In .PivotFields
With pf
'.DragToPage = False
'.DragToRow = False
'.DragToColumn = False
' .DragToData = False
'.DragToHide = False
End With
Next pf
End With

End Sub


All times are GMT +1. The time now is 07:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com