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 / March 2008

Tip: Looking for answers? Try searching our database.

PIVOT TABLE ALL option

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aman - 13 Mar 2008 15:01 GMT
Is there any way to remove the "All" option that comes in the page
fields in a pivot table??
Jim Thomlinson - 13 Mar 2008 18:46 GMT
Nope... All is there to stay...
Signature

HTH...

Jim Thomlinson

> Is there any way to remove the "All" option that comes in the page
> fields in a pivot table??
Debra Dalgleish - 14 Mar 2008 23:56 GMT
As Jim said, you can't remove the "All" option in the page field. With
programming, you could select another item if the user selects "All".

For example, the following 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.

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

With pf
    If .CurrentPage = "(All)" Then
        i = 1
        For i = 1 To pf.PivotItems.Count + 1
        On Error Resume Next
            .CurrentPage = .PivotItems(i).Name
            If Err.Number = 0 Then
                Exit For
            End If
        Next i
        MsgBox "The (All) option is not available"
    End If
End With

End Sub
'============================

> Is there any way to remove the "All" option that comes in the page
> fields in a pivot table??

Signature

Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html


Rate this thread:






 
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.