#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Pivot Table Page

Is there a way to remove "all" as an option from a page on a pivot table?
  #2   Report Post  
Posted to microsoft.public.excel.misc
PMU PMU is offline
external usenet poster
 
Posts: 2
Default Pivot Table Page

You can remove all of a specific category by going to the pivot category
itself and selecting the down arrow on the main page. That will produce a
drop down list and you can deselect the check boxes for whatever you don't
want to view in the table.

"PFLY" wrote:

Is there a way to remove "all" as an option from a page on a pivot table?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Pivot Table Page

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.
Change the field name to match your pivot table

'========================
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
'============================



PFLY wrote:
Is there a way to remove "all" as an option from a page on a pivot table?



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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page field - pivot table yshridhar Excel Discussion (Misc queries) 0 August 1st 07 04:48 AM
Pivot Table Page fields Ajit Excel Discussion (Misc queries) 1 October 12th 05 05:49 PM
Pivot Table Page Field Neily Excel Discussion (Misc queries) 3 February 24th 05 01:23 PM
Pivot Table Page Field Jimbola Excel Discussion (Misc queries) 0 February 6th 05 09:13 PM
Pivot Table Page Fields Andy Excel Discussion (Misc queries) 1 December 17th 04 05:25 PM


All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"