Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Pivot table report filter problem

I'm using averages in my pivot table and the automatic (All) option in the
filter doesn't give exactly the right answers so I would prefer to hide this
option. Is there a way of doing this?
--
Katri

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,979
Default Pivot table report filter problem

You can't suppress the "(All)" option in the filter. 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("Region")

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.



wrote:
I'm using averages in my pivot table and the automatic (All) option in the
filter doesn't give exactly the right answers so I would prefer to hide this
option. Is there a way of doing this?



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

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
Pivot Table Report - HELP! Wannano Excel Discussion (Misc queries) 3 December 8th 06 04:01 PM
A pivot table report cannot overlap another pivot table report. David Excel Discussion (Misc queries) 1 June 23rd 05 11:42 PM
Pivot Table Data Filter Problem Pepikins Excel Discussion (Misc queries) 0 June 16th 05 09:12 AM
Pivot Table Report Adam Charts and Charting in Excel 0 March 24th 05 07:03 PM
pivot table report herbzee Excel Worksheet Functions 1 February 22nd 05 06:57 PM


All times are GMT +1. The time now is 11:43 PM.

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

About Us

"It's about Microsoft Excel"