Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I have the following macro that clears all filters in a pivot table of mine in 2007: Sheets(2).PivotTables("PivotTable1").ClearAllFilte rs. When I try to run the macro in 2003 I get an error message that says: "Object doesn't support the property or method." Any ideas for how I can clear all filters in my pivot table in excel 2003 using a macro. Thanks. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
'=========================
Sub PivotShowItemResetSort() 'show all items in field 'sort is set to Manual to prevent errors, e.g. 'unable to set Visible Property of PivotItem class 'returns sort order to previous setting Dim pt As PivotTable Dim pf As PivotField Dim pi As PivotItem Dim intASO As Integer Application.ScreenUpdating = False Application.DisplayAlerts = False On Error Resume Next For Each pt In ActiveSheet.PivotTables pt.ManualUpdate = True For Each pf In pt.VisibleFields intASO = pf.AutoSortOrder pf.AutoSort xlManual, pf.SourceName For Each pi In pf.PivotItems pi.Visible = True Next pi pf.AutoSort intASO, pf.SourceName pf.CurrentPage = "(All)" Next pf pt.ManualUpdate = False Next pt Application.DisplayAlerts = True Application.ScreenUpdating = True End Sub '========================= MichaelR wrote: Hi, I have the following macro that clears all filters in a pivot table of mine in 2007: Sheets(2).PivotTables("PivotTable1").ClearAllFilte rs. When I try to run the macro in 2003 I get an error message that says: "Object doesn't support the property or method." Any ideas for how I can clear all filters in my pivot table in excel 2003 using a macro. Thanks. -- Debra Dalgleish Contextures www.contextures.com/tiptech.html Blog: http://blog.contextures.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot tables in Excel 2003 and 2007 | Excel Discussion (Misc queries) | |||
how do I refresh in excel 2007 a 2003 pivot table? | Excel Discussion (Misc queries) | |||
Excel 2007 Macro Help (Excel 2003 not working in 2007) | Excel Discussion (Misc queries) | |||
Excel 2007 pivot table formats that work with 2003 | Excel Discussion (Misc queries) | |||
SOS!!! Excel 2007 - Pivot tables created in 2003 format | Excel Discussion (Misc queries) |