vba courses london - pivot tables

Forum home » Delegate support and help forum » Microsoft VBA Training and help » vba courses london - Pivot Tables

vba courses london - Pivot Tables

resolvedResolved · Low Priority · Version Standard

Christopher has attended:
Excel VBA Intro Intermediate course

Pivot Tables

Is there a way to disable access to raw data on pivot tables?

RE: Pivot Tables

Hi Christopher,
Yes, as I suggested, it turns out to be a settable property of a PivotTable object:

PivotTable.EnableDrilldown

e.g.

Sub ToggleDrilldown()

Dim pt As PivotTable
Dim status As Boolean

Set pt = Worksheets("PT Orders").PivotTables("PT_Orders")
status = pt.EnableDrilldown
pt.EnableDrilldown = Not (status)

End Sub

PivotTable has lots of properties! Might be worth a browse through the others.

/Roy

RE: Pivot Tables

That's fantastic - thanks Roy.

Chris

RE: Pivot Tables

I've found an easier way to do this. In the Table Options, you can uncheck the Enable Drill to Details box, protect the sheet and allow users to Use PivotTable reports.

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


Server loaded in 0.06 secs.