Macros VBA question: copy paste from Pivot to a table in another sheet

excelnewbie765

New Member
Joined
Feb 17, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, I wonder how to create VBA macros that are able to copy-paste values from a Pivot row to a table in another sheet. Be mindful that his pivot has several rows and I need to copy the values from each row to different tables in another sheet. This is a repetitive task that I need to do on weekly basis.. so I would like to automate it as much as possible. Thank you for the answer!
 

Attachments

  • MiniTest.jpg
    MiniTest.jpg
    254.9 KB · Views: 14

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Yes, not a big problem.

The data set, which is what you have in the upper part of the image can be addressed in VBA with the pivottable.databodyrange

You can then loop through each row of this range and place it in the various sheets on the right date row.

In order to provide some working code, I will need to know which sheet is to be used for each row of the data set.
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,161
Members
448,948
Latest member
spamiki

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