Macro to filter Pivot Table

Lee McMahon

New Member
Joined
Aug 13, 2010
Messages
1
Hi,

This is my first post on this forum, but I have used it maytimes before with great sucess. So thank you!!

My problem is this:

I have 3 pivot tables which contain different data, the onr field they have in common is a month field.

I have written a set of macros that filter the 3 pivots based on an input month. This works fine.

The problem I have is that one of the pivots might not have that particular month availble as a filter. Hence my macro fails.

What I want is for the pivot that does not have the availble month to reset to zero values, and when I run a different month it updates again with the relevant data.

Is this possible???
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,213,563
Messages
6,114,329
Members
448,564
Latest member
ED38

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