vba courses london - pivot tables
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

replyReply Tue 27 Mar 2007, 16:42Delegate Christopher said...

Christopher has attended:
Excel VBA Intro Intermediate course

Pivot Tables

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

For upcoming training course dates see: Pricing & availability

replyReply Wed 28 Mar 2007, 12:25Trainer Roy said...

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

replyReply Wed 28 Mar 2007, 12:27Delegate Christopher said...

RE: Pivot Tables

That's fantastic - thanks Roy.

Chris

replyReply Wed 28 Mar 2007, 12:37Delegate Christopher said...

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.

 

Vba tip:

Empty The Clipboard with CutCopyMode

After each Copy/Paste operation in VBA, you should use the following line of code to empty the clipboard. This ensures that the computer memory doesn't overload:

ActiveSheet.Paste
Application.CutCopyMode = False

View all VBA hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard