+ Reply to Thread
Results 1 to 3 of 3

How to remove the "(All)" item from a PivotTable's filter dropdown

  1. #1
    news.microsoft.com
    Guest

    How to remove the "(All)" item from a PivotTable's filter dropdown

    I am trying to remove the "(All)" item from a PivotTable's filter dropdown.
    Can anyone offer any suggestions?

    Thanks in advance!

    -jim



  2. #2
    Registered User
    Join Date
    01-03-2006
    Posts
    6
    Hi, it can't be removed - you have to have at least one option checked. The solution to this is to remove the entire data field from the pivot table...

    Hojo

  3. #3
    Debra Dalgleish
    Guest

    Re: How to remove the "(All)" item from a PivotTable's filter dropdown

    You can't suppress the "(All)" option in the page field. With
    programming, you could select another item if the user selects "All".

    For example:

    '========================
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim pt As PivotTable
    Dim pf As PivotField
    Set pt = Me.PivotTables(1)
    Set pf = pt.PivotFields("Rep")

    With pf
    If .CurrentPage = "(All)" Then
    .CurrentPage = .PivotItems(1).Name
    End If
    End With
    End Sub
    '============================

    This code is stored on the worksheet's code module --
    Right-click the sheet tab, and choose View Code
    Paste the code where the cursor is flashing.


    news.microsoft.com wrote:
    > I am trying to remove the "(All)" item from a PivotTable's filter dropdown.
    > Can anyone offer any suggestions?
    >
    > Thanks in advance!
    >
    > -jim
    >
    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.6.0 RC 1