Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / January 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 03 Jan 2006 16:34 GMT
I am trying to remove the "(All)" item from a PivotTable's filter dropdown.
Can anyone offer any suggestions?

Thanks in advance!

-jim
hojo - 03 Jan 2006 18:40 GMT
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

Signature

hojo

Debra Dalgleish - 04 Jan 2006 00:30 GMT
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.

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

Signature

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

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.