ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro in 2003 vs 2007 (https://www.excelbanter.com/excel-programming/414548-macro-2003-vs-2007-a.html)

MichaelR

Macro in 2003 vs 2007
 
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.

Skinman

Macro in 2003 vs 2007
 
Turn it on or off. That's all
Selection.AutoFilter
Skinman

"MichaelR" wrote in message
...
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.



MichaelR

Macro in 2003 vs 2007
 
I believe that works for a table with filters but unfortunately not for a
pivot table.

"Skinman" wrote:

Turn it on or off. That's all
Selection.AutoFilter
Skinman

"MichaelR" wrote in message
...
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.





All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com