VBA extract values from pivot table

MissingLink

New Member
Joined
Mar 19, 2018
Messages
1
Hi everyone,

I'm trying to work with a macro for extracting values from a pivot table to another sheet ("Sheet2").
The sheet with pivot table is as followed (blue is Data Source list and red is Pivot Table):
ABCDE
Liste des ingrédients
X
YRow LabelsCount of Liste des ingrédients
ZX2
XY1
YYZ1
etcetc1

<tbody>
</tbody>

I would like to extract the data from "Count of Liste des ingrédients" in column A of Sheet2 and the data from "Row Labels" in column B of Sheet2, without the Grand Total and its related value.

Let me know if you are missing some information, I tried to be as precise as possible. :)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,444
Messages
6,124,891
Members
449,194
Latest member
JayEggleton

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