How to have a Macro that changed filter in pivot and copies results

DaxMC

New Member
Joined
Jun 10, 2015
Messages
1
Hi @ all,

I'm new here and this is my fist time to describe a problem in excel so please excuse if i get something wrong...
So this is my problem:

I need a marco that changes the filter of a pivot table (actually that are three tables).
Not all numbers are in every table
then the macro should copy the results as values in another workbook (one after the other)

Example:
Filter=1111
Pivottable1= 20 Lines (excluding sum (last line))
Pivottable 2= "1111" does not exist
Pivottable 3 = 4 Lines (excluding sum (last line))

Copy this as values in new Workbook starting line 3, so that lines 3-20 show results from Table 1 and lines 23-26 show results from table 2.

The problem is, that i will have like 40 different filter values and so the number of lines is always different and its possible that the filter value exists in every pivottable...

It would be awesome if someone would have an idea...

thanks in advance..
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,215,731
Messages
6,126,537
Members
449,316
Latest member
sravya

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