using excel2000 and I would like to show all the salespeople there margins with drill down capability. Do not want them to be able to filter thru other salespersons data. Essentialy I want to disable the selection for salesperson in the pagefield.
This macro just gives me a run-time error.
If I hide the other salespersons they will simply change the field settings.Sub DisableSelection() Dim pt As PivotTable Dim pf As PivotField Set pt = ActiveSheet.PivotTables(1) For Each pf In pt.PivotFields pf.EnableItemSelection = False Next pf End Sub
thx all.
Last edited by VBA Noob; 12-01-2008 at 04:31 PM. Reason: Added code tags as per forum rules
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks