Pivot - Untick all

gossv

Board Regular
Joined
Jul 8, 2005
Messages
141
Hello,

I have created a pivot table using a very large amount of data. When a drop down box is selected in the pivot every option is already ticked. I would like the choice to untick all boxes and then just choose 1 option rather than manually unticking all the boxes.

Does anyone know if this is possible when using Excel 2000?

Thank you

Ginny
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi Ginny

You could not have such an option because in a Pivot Table it's not allowed to hide all the items in a field. A field must always have at least one visible item.

Unfortunately I don't know of any way to do the next best thing that would be to uncheck all items but one.

However, if you really need this functionality often, you can write a small code that hides all the items but the first, for example, in all pivot fields.

Hope this helps
PGC
 
Upvote 0
instead of unticking, you could select the item with your mouse, right click and 'hide'.....this also works for multiple values if you highlight/select them
 
Upvote 0
Thank you for your ideas.

I might try to write a macro unticking them all. It must be in a later edition of Excel that pivot tables have this option.

Thanks
 
Upvote 0
Hi again

It must be in a later edition of Excel that pivot tables have this option.

You may be right. I have xl2000 but I've already seen the "Show all" option in xl2003. My doubt is if using this option you can leave a field without any item selected. But, of course, maybe it can.

In xl2000 I can hide all items but 1. For instance leaving the first item visible:

Code:
Sub PTHideItems()
Dim PF As PivotField, iPI As Integer

For Each PF In Worksheets("Sheet1").PivotTables("PivotTable1").PivotFields
    If PF.Orientation <> xlDataField Then
        PF.PivotItems(1).Visible = True
        For iPI = 2 To PF.PivotItems.Count
            PF.PivotItems(iPI).Visible = False
        Next
    End If
Next
End Sub

Hope this helps
PGC
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top