Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tim Tim is offline
external usenet poster
 
Posts: 408
Default removing (All) from Pivot Table

I'm looking to remove the (All) section from under the page area in a pivot
table. I cant find code nor a way to remove this option.

Thanks,
Tim
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default removing (All) from Pivot Table

This workaround was posted by Debra Dalgleish:

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.

Tim wrote:

I'm looking to remove the (All) section from under the page area in a pivot
table. I cant find code nor a way to remove this option.

Thanks,
Tim


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
Tim Tim is offline
external usenet poster
 
Posts: 408
Default removing (All) from Pivot Table

Is this because the All section is used to contain the data and it just
performs a 'filter' on that data? I used the work around, just thought it
would be better to remove the item if it doesn't provide accurate information.

Thanks for all the help, I appreciate it!
Tim

"Tim" wrote:

I'm looking to remove the (All) section from under the page area in a pivot
table. I cant find code nor a way to remove this option.

Thanks,
Tim

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default removing (All) from Pivot Table

Pivot Tables are OLAP Cubes. The Cubes pre aggregate the data so that when
you want to retrieve members it is extremely quick. The all feature just grab
the entire dimension of the cube. So it is not really a filter. Think of the
data items as having co-ordinates in the cube. All grabs the aggregate of all
of the members of the dimension in question. Since the numbers are
pre-aggregated there is really no way to omit the all. It exists in the cube.
Not that this explanation help you but it should give you some insight into
why it does what it does.

Jim Thomlinson


"Tim" wrote:

Is this because the All section is used to contain the data and it just
performs a 'filter' on that data? I used the work around, just thought it
would be better to remove the item if it doesn't provide accurate information.

Thanks for all the help, I appreciate it!
Tim

"Tim" wrote:

I'm looking to remove the (All) section from under the page area in a pivot
table. I cant find code nor a way to remove this option.

Thanks,
Tim

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
Removing comments in a pivot table CMEknit Excel Discussion (Misc queries) 1 March 18th 10 05:09 PM
Removing '0' values in a pivot table Browny Excel Discussion (Misc queries) 2 October 30th 08 06:28 AM
Removing Pivot Table Functionality [email protected] Excel Worksheet Functions 1 May 25th 07 04:35 AM
removing #DIV/0! in VBA in a calculated field in a pivot table lewscannon Excel Programming 2 April 28th 05 08:32 PM
Removing errors from a Pivot table Mighty Magpie Excel Discussion (Misc queries) 2 February 3rd 05 03:15 PM


All times are GMT +1. The time now is 05:03 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"