Macro to paste values data from GetPivotData in a separate workbook

LiteBrown

New Member
Joined
Aug 13, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I'm trying to create a macro that will go through an entire folder, find sheet "2024Q2" in each excel document, then copy the data from B3:E38 and paste as values, then return to sheet "2024Q3", save & close. I've been able to get the macro to complete the process, however the cells are ending up blank. I assume the macro isn't referencing the formula to find the value that I want to be pasted. If anyone has advice on how to get the formulas to provide the correct data before pasting, it would be greatly appreciated. I'm new to this stuff and I'm learning as I go to improve a process that was created before me, so take it easy!

I've included a screenshot of the sheets the program would need to go through "Validation Sheet" and the "Data Warehouse" where the formulas are referencing.

I've thoroughly goobered up my macro at this point so I don't think it would be useful to include as I was throwing anything in there to see if it works. Please let me know if you need any more information and I will get it over to you ASAP!
 

Attachments

  • Data Warehouse.PNG
    Data Warehouse.PNG
    16.6 KB · Views: 3
  • Validation Sheet.PNG
    Validation Sheet.PNG
    197.5 KB · Views: 3

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,750
Messages
6,180,740
Members
452,996
Latest member
nelsonsix66

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