VBA copy merged data between worksheets based on date

jlk3208

New Member
Joined
Jul 29, 2021
Messages
2
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I am very new to VBA and have searched for an answer but am unable to make anything work. I have 13 worksheets in one workbook. The first worksheet is the summary sheet ("Active Rent Roll") and the subsequent sheets are the months of the year (i.e. "Jan", "Feb", "Mar", etc.). At the end of each month, I copy and paste last months' worksheet into the following months' worksheet to capture any ongoing changes. I need to pull two columns of data into the summary sheet. The data being moved from the month worksheets to the summary worksheet are both merged cells both not the same size. In cell Y4 of the summary sheet (Active Rent Roll), I have the month coded as =TEXT(today(),'MMMM"). I want to update column B and G in "Active Rent Roll" from the data in the corresponding month worksheet (if it is currently August, data should be pulled from worksheet "Aug"). The data in the month worksheet is located in merged cells starting with the upper left cell C6, 12, 18, ending at 109 and should be pasted into the summary sheet "Active Rent Roll" B6, 8, 10, ending at B41. Column G in "Active Rent Roll" should be updated with data from column R from the corresponding current month worksheet. I only want to update the data once a month using a button, I do not want the data to update automatically. Any assistance would be greatly appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,110
Messages
5,768,156
Members
425,458
Latest member
Jaspal1996

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
Top