Conditional Filter dates of pivot table

GusGus

New Member
Joined
Aug 23, 2011
Messages
1
I have several pivot tables linked to data cubes. Each has year, quarter, and month as well as data for the past ten years or so. I often generate reports based on these tables, but only the past 3 years (e.g. 2011, 2010, 2009) and the current year only up to the current month and quarter (e.g. Q3 2011 and August).

I'm still a VBA beginner I am trying to figure out how to write some VBA code to automatically filter the dates so I don't have to go through so many reports and manually do it. I'm trying to figure out how to do it on one table and then will repeat for the others, but am not having much luck making progress. Any ideas of how to meet my goals?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

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