VBA to Copy Multiple Ranges from Multiple Sheets to Monthly Report

GeoKoro13

New Member
Joined
Nov 24, 2016
Messages
27
Hi guys,

Although, it seems that this question has been asked many times, still I can't make it work.

So, here is my case:
I have a file that has 3 worksheets, named Master_Sheet, Monthly_Report and the Data1. Now, the name of the Data1 sheet changes dynamically and from that sheet others are created (again with the dynamic name feature). These "DataSheets" have D4, D8, E3, E7, J41 and K42 the data I'm interested to. These datasheets are deleted after 6 months and others new created.
In my Master_Sheet I have a dynamic list of the worksheet names in column E (if that's helpful). So, what I'm trying to achieve here is to keep the record of the aforementioned cell's values by pastespecial in rows at the Monthly_Record sheet

i.e. From Data1:D4 -> 5E, D8 -> 5F, E3 -> 5G, E7 -> 5H, J41 -> 5I and K42 -> 5K
From Data2:D4 -> 6E, D8 -> 6F, E3 -> 6G, E7 -> 6H, J41 -> 6I and K42 -> 6K

when new data is added to sheets added to the workbook or at least before deleted.

Any ideas guys for a VBA code?

Or maybe, I can create the table with the reference I want and then have a code that will copy and pastespecial (overwrite) everything at that Monthly_Sheet everytime I close the file. Any ideas?

Thanks in advance.
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,213,543
Messages
6,114,237
Members
448,555
Latest member
RobertJones1986

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