+ Reply to Thread
Results 1 to 1 of 1

Thread: Disable selection in Pivot table

  1. #1
    Registered User
    Join Date
    09-15-2005
    Posts
    6

    Disable selection in Pivot table

    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.
    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
    If I hide the other salespersons they will simply change the field settings.
    thx all.
    Last edited by VBA Noob; 12-01-2008 at 04:31 PM. Reason: Added code tags as per forum rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0